![]() | Cryptographic Token Interface Standard |
PKCS#11 |
In general, when a Cryptoki call is made, error codes from Section (other than CKR_OK) take precedence over error codes from Section , which take precedence over error codes from Section , which take precedence over error codes from Section . One minor implication of this is that functions that use a session handle (i.e., most functions!) never return the error code CKR_TOKEN_NOT_PRESENT (they return CKR_SESSION_HANDLE_INVALID instead). Other than these precedences, if more than one error code applies to the result of a Cryptoki call, any of the applicable error codes may be returned. Exceptions to this rule will be explicitly mentioned in the descriptions of functions.