CT_InitToken
This function is a SafeNet extension to PKCS#11, it allows the Administrator to initialize a new Token.
It initializes the token indicated by slotId with the SO pin (pPin and ulPinLen) and pLabel.
The session hSession, must be a session to the Admin Token of the adapter and be in RW User Mode for this function to succeed otherwise CKR_SESSION_HANDLE_INVALID
is returned.
The slotId value must refer to a valid slot where the token in the slot must be in an un-initialized state, otherwise CKR_SLOT_ID_INVALID
is returned. If the slotID is valid but the token is not present then CKR_TOKEN_NOT_PRESENT
is returned.
Synopsis
CT_InitToken( CK_SESSION_HANDLE hSession, CK_SLOT_ID slotID, CK_CHAR_PTR pPin, CK_ULONG ulPinLen, CK_CHAR_PTR pLabel );
Operation in WLD Mode
When SafeNet ProtectToolkit is configured to operate in WLD mode, this function is not supported and will return the error CKR_FUNCTION_NOT_SUPPORTED.