Invoked when the PKCS 11 C_initToken() function is called.
This function is called to indicate that the token is being re-initialized (that is after the very first time). PKCS 11 defines that token reinitialization has specific additional requirements (e.g., deleting all existing data on the token). Note, that on token re-initialization, first this function will be called and then initToken( pRV, false, ... ) will be called.
All other parameters are as defined by the PKCS 11 Version 2.40 specification (see reference 1). The function return code is meant to convey an error to the enclosing PKCS 11 library, while the pRV parameter returns specific PKCS 11 error codes to the calling application.
- Parameters
-
pRV | [ out ] PKCS 11 return value to be returned to the caller. CKR_FUNCTION_NOT_SUPPORTED is returned if the function is not implemented. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A call to initialize() has not been made. |
P6R::eInvalidState | |