An error code defined by the cryptographic device. Used for errors not covered by Cryptoki
Bit flags that define the type of session
ID of PKCS#11 object
PKCS#11 module
Slot
The state of the session
Copies an object, creating a new object for the copy
the copied object
template for new object
The new instance of SessionObject
creates a new object
the object's template
The new instance of SessionObject
Creates the encryption operation
The encryption mechanism
The encryption key
The encryption operation
Creates the decryption operation
The decryption mechanism
The decryption key
Optional
blockSize: numberBlock size in bytes
The decryption operation
Creates the digest operation
The digest mechanism
The digest operation
Creates the signing operation
The signing mechanism
The signing key
Signing operation
Creates the verifying operation
The verifying mechanism
The verifying key
Derives a key from a base key
Key derivation mech
Base key
New key template
Derived key
Derives a key from a base key
Key derivation mech
Base key
New key template
Async callback function with derived key
Removes all session objects matched to template
The list of attributes
The number of destroyed objects
Removes the specified session object
Object for destroying
The number of destroyed objects
Removes all session objects
The number of destroyed objects
Returns a collection of session objects matched to template
Th collection of session objects
Optional
template: null | ITemplateOptional
callback: SessionFindCallbackGenerates a secret key or set of domain parameters, creating a new object.
Generation mechanism
Optional
template: ITemplateTemplate for the new key or set of domain parameters
The secret key
Generates a secret key or set of domain parameters, creating a new object.
Generation mechanism
Template for the new key or set of domain parameters
Async callback with generated key
Generates an asymmetric key pair
Generation mechanism
The public key template
The private key template
The generated key pair
Generates an asymmetric key pair
Generation mechanism
The public key template
The private key template
Async callback with generated key pair
Protected
getReturns object from session by handle
handle of object
The session object or null
Logs a user into a token
the user's PIN.
UTF8
character,
but the token may impose subset restrictionsthe user type. Default is UserType.USER
Restores the cryptographic operations state of a session from a string of bytes obtained with getOperationState
the saved state
holds key which will be used for an ongoing encryption or decryption operation in the restored session (or 0 if no encryption or decryption key is needed, either because no such operation is ongoing in the stored session or because all the necessary key information is present in the saved state)
holds a handle to the key which will be used for an ongoing signature, MACing, or verification operation in the restored session (or 0 if no such key is needed, either because no such operation is ongoing in the stored session or because all the necessary key information is present in the saved state)
Unwraps (decrypts) a wrapped key
Unwrapping mechanism
Unwrapping key
Wrapped key
New key template
Unwrapped key
Wraps (i.e., encrypts) a key
Wrapping mechanism
Wrapping key
Key to be wrapped
Wrapped key
Wraps (i.e., encrypts) a key
Wrapping mechanism
Wrapping key
Key to be wrapped
Async callback function with wrapped key
Provides information about a session