pfnus wrote:
>Hi,
>
>After communicator successfully load my pkcs11 module, whenever i do a
>"More Info" on my pkcs11 token, the state given by communicator is
>"Diabled(Token failed startup tests.)" if i do a "Config", the Remarks
>section given is:
>"The security card or token does not exist, needs to be initialized or
>has been removed."
>
Startup tests are used to determine if your token correctly implements
several symetric operations that were used by export browsers (CKM_DES,
CKM_RC4, CKM_RC2 if I remember right). These tests can fail either
because your token doesn't implement the algorithms or has problems
importing the keys.
Since you clain to only return CKM_RSA_PKCS, then I'd check to make sure
you return the correct count value from C_GetMechanismList.
bob
>
>
>All my functions, return CKR_OK whenever possible, but i would like to
>know what are the other things that must be implemented in order to
>pass the startup tests by Communicator. How Communicator do the
>startup test in order for my token to be in "Ready" state? I have
>returned "CKM_RSA_PKCS" only in my C_GetMechanismList, is this an
>issue? I have also returned the attribute fields which are CKA_ID,
>CKA_VALUE and CKA_LABLE requested by Communicator during
>C_GetAttributeValue(...),except that i return NULL in CKA_VALUE. I
>couldn't figure out how communicator do the token tests itself in
>order for the my token in "Ready" state. Appreciate ur help...
>
>Please advice.. thanks in advance..
>