Method | Description | |
---|---|---|
CancelFunction ( ) : void |
Legacy function which should throw CKR_FUNCTION_NOT_PARALLEL
|
|
CloseSession ( ) : void |
Closes a session between an application and a token
|
|
CopyObject ( |
Copies an object, creating a new object for the copy
|
|
CreateObject ( List |
Creates a new object
|
|
Decrypt ( |
Decrypts single-part data
|
|
Decrypt ( |
Decrypts multi-part data
|
|
Decrypt ( |
Decrypts multi-part data
|
|
DecryptDigest ( |
Digests and decrypts data
|
|
DecryptDigest ( |
Digests and decrypts data
|
|
DecryptDigest ( |
Digests and decrypts data
|
|
DecryptVerify ( |
Decrypts data and verifies a signature of data
|
|
DecryptVerify ( |
Decrypts data and verifies a signature of data
|
|
DecryptVerify ( |
Decrypts data and verifies a signature of data
|
|
DeriveKey ( |
Derives a key from a base key, creating a new key object
|
|
DestroyObject ( |
Destroys an object
|
|
Digest ( |
Digests multi-part data
|
|
Digest ( |
Digests multi-part data
|
|
Digest ( |
Digests single-part data
|
|
DigestEncrypt ( |
Digests and encrypts data
|
|
DigestEncrypt ( |
Digests and encrypts data
|
|
DigestEncrypt ( |
Digests and encrypts data
|
|
DigestKey ( |
Digests the value of a secret key
|
|
Dispose ( ) : void |
Disposes object
|
|
Encrypt ( |
Encrypts single-part data
|
|
Encrypt ( |
Encrypts multi-part data
|
|
Encrypt ( |
Encrypts multi-part data
|
|
FindAllObjects ( List |
Searches for all token and session objects that match provided attributes
|
|
FindObjects ( int objectCount ) : List |
Continues a search for token and session objects that match a template, obtaining additional object handles
|
|
FindObjectsFinal ( ) : void |
Terminates a search for token and session objects
|
|
FindObjectsInit ( List |
Initializes a search for token and session objects that match a attributes
|
|
GenerateKey ( |
Generates a secret key or set of domain parameters, creating a new object
|
|
GenerateKeyPair ( |
Generates a public/private key pair, creating new key objects
|
|
GenerateRandom ( int length ) : byte[] |
Generates random or pseudo-random data
|
|
GetAttributeValue ( |
Obtains the value of one or more attributes of an object
|
|
GetAttributeValue ( |
Obtains the value of one or more attributes of an object
|
|
GetFunctionStatus ( ) : void |
Legacy function which should throw CKR_FUNCTION_NOT_PARALLEL
|
|
GetObjectSize ( |
Gets the size of an object in bytes.
|
|
GetOperationState ( ) : byte[] |
Obtains a copy of the cryptographic operations state of a session encoded as an array of bytes
|
|
GetSessionInfo ( ) : |
Obtains information about a session
|
|
InitPin ( byte userPin ) : void |
Initializes the normal user's PIN
|
|
InitPin ( string userPin ) : void |
Initializes the normal user's PIN
|
|
Login ( CKU userType, byte pin ) : void |
Logs a user into a token
|
|
Login ( CKU userType, string pin ) : void |
Logs a user into a token
|
|
Logout ( ) : void |
Logs a user out from a token
|
|
SeedRandom ( byte seed ) : void |
Mixes additional seed material into the token's random number generator
|
|
SetAttributeValue ( |
Modifies the value of one or more attributes of an object
|
|
SetOperationState ( byte state, |
Restores the cryptographic operations state of a session from an array of bytes obtained with GetOperationState
|
|
SetPin ( byte oldPin, byte newPin ) : void |
Modifies the PIN of the user that is currently logged in, or the CKU_USER PIN if the session is not logged in.
|
|
SetPin ( string oldPin, string newPin ) : void |
Modifies the PIN of the user that is currently logged in, or the CKU_USER PIN if the session is not logged in.
|
|
Sign ( |
Signs multi-part data, where the signature is an appendix to the data
|
|
Sign ( |
Signs multi-part data, where the signature is an appendix to the data
|
|
Sign ( |
Signs single-part data, where the signature is an appendix to the data
|
|
SignEncrypt ( |
Signs and encrypts data
|
|
SignEncrypt ( |
Signs and encrypts data
|
|
SignEncrypt ( |
Signs and encrypts data
|
|
SignRecover ( |
Signs single-part data, where the data can be recovered from the signature
|
|
UnwrapKey ( |
Unwraps (i.e. decrypts) a wrapped key, creating a new private key or secret key object
|
|
Verify ( |
Verifies a signature of data, where the signature is an appendix to the data
|
|
Verify ( |
Verifies a signature of data, where the signature is an appendix to the data
|
|
Verify ( |
Verifies a signature of data, where the signature is an appendix to the data
|
|
VerifyRecover ( |
Verifies signature of data, where the data can be recovered from the signature
|
|
WrapKey ( |
Wraps (i.e., encrypts) a private or secret key
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes object
|
Method | Description | |
---|---|---|
Session ( LowLevelAPI40 pkcs11, uint sessionId ) : System |
Initializes new instance of Session class
|
public CopyObject ( |
||
objectHandle | Handle of object to be copied | |
attributes | List |
New values for any attributes of the object that can ordinarily be modified |
return |
public CreateObject ( List |
||
attributes | List |
Object attributes |
return |
public Decrypt ( |
||
mechanism | Decryption mechanism | |
keyHandle | Handle of the decryption key | |
encryptedData | byte | Data to be decrypted |
return | byte[] |
public Decrypt ( |
||
mechanism | Decryption mechanism | |
keyHandle | Handle of the decryption key | |
inputStream | Stream | Input stream from which encrypted data should be read |
outputStream | Stream | Output stream where decrypted data should be written |
return | void |
public Decrypt ( |
||
mechanism | Decryption mechanism | |
keyHandle | Handle of the decryption key | |
inputStream | Stream | Input stream from which encrypted data should be read |
outputStream | Stream | Output stream where decrypted data should be written |
bufferLength | int | Size of read buffer in bytes |
return | void |
public DecryptDigest ( |
||
digestingMechanism | Digesting mechanism | |
decryptionMechanism | Decryption mechanism | |
keyHandle | Handle of the decryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where decrypted data should be written |
return | byte[] |
public DecryptDigest ( |
||
digestingMechanism | Digesting mechanism | |
decryptionMechanism | Decryption mechanism | |
keyHandle | Handle of the decryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where decrypted data should be written |
bufferLength | int | Size of read buffer in bytes |
return | byte[] |
public DecryptDigest ( |
||
digestingMechanism | Digesting mechanism | |
decryptionMechanism | Decryption mechanism | |
keyHandle | Handle of the decryption key | |
data | byte | Data to be processed |
digest | byte | Digest |
decryptedData | byte | Decrypted data |
return | void |
public DecryptVerify ( |
||
verificationMechanism | Verification mechanism | |
verificationKeyHandle | Handle of the verification key | |
decryptionMechanism | Decryption mechanism | |
decryptionKeyHandle | Handle of the decryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where decrypted data should be written |
signature | byte | Signature |
isValid | bool | Flag indicating whether signature is valid |
return | void |
public DecryptVerify ( |
||
verificationMechanism | Verification mechanism | |
verificationKeyHandle | Handle of the verification key | |
decryptionMechanism | Decryption mechanism | |
decryptionKeyHandle | Handle of the decryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where decrypted data should be written |
signature | byte | Signature |
isValid | bool | Flag indicating whether signature is valid |
bufferLength | int | Size of read buffer in bytes |
return | void |
public DecryptVerify ( |
||
verificationMechanism | Verification mechanism | |
verificationKeyHandle | Handle of the verification key | |
decryptionMechanism | Decryption mechanism | |
decryptionKeyHandle | Handle of the decryption key | |
data | byte | Data to be processed |
signature | byte | Signature |
decryptedData | byte | Decrypted data |
isValid | bool | Flag indicating whether signature is valid |
return | void |
public DeriveKey ( |
||
mechanism | Derivation mechanism | |
baseKeyHandle | Handle of base key | |
attributes | List |
Attributes for the new key |
return |
public DestroyObject ( |
||
objectHandle | Handle of object to be destroyed | |
return | void |
public Digest ( |
||
mechanism | Digesting mechanism | |
inputStream | Stream | Input stream from which data should be read |
return | byte[] |
public Digest ( |
||
mechanism | Digesting mechanism | |
inputStream | Stream | Input stream from which data should be read |
bufferLength | int | Size of read buffer in bytes |
return | byte[] |
public Digest ( |
||
mechanism | Digesting mechanism | |
data | byte | Data to be digested |
return | byte[] |
public DigestEncrypt ( |
||
digestingMechanism | Digesting mechanism | |
encryptionMechanism | Encryption mechanism | |
keyHandle | Handle of the encryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where encrypted data should be written |
return | byte[] |
public DigestEncrypt ( |
||
digestingMechanism | Digesting mechanism | |
encryptionMechanism | Encryption mechanism | |
keyHandle | Handle of the encryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where encrypted data should be written |
bufferLength | int | Size of read buffer in bytes |
return | byte[] |
public DigestEncrypt ( |
||
digestingMechanism | Digesting mechanism | |
encryptionMechanism | Encryption mechanism | |
keyHandle | Handle of the encryption key | |
data | byte | Data to be processed |
digest | byte | Digest |
encryptedData | byte | Encrypted data |
return | void |
public DigestKey ( |
||
mechanism | Digesting mechanism | |
keyHandle | Handle of the secret key to be digested | |
return | byte[] |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | Flag indicating whether managed resources should be disposed |
return | void |
public Encrypt ( |
||
mechanism | Encryption mechanism | |
keyHandle | Handle of the encryption key | |
data | byte | Data to be encrypted |
return | byte[] |
public Encrypt ( |
||
mechanism | Encryption mechanism | |
keyHandle | Handle of the encryption key | |
inputStream | Stream | Input stream from which data to be encrypted should be read |
outputStream | Stream | Output stream where encrypted data should be written |
return | void |
public Encrypt ( |
||
mechanism | Encryption mechanism | |
keyHandle | Handle of the encryption key | |
inputStream | Stream | Input stream from which data to be encrypted should be read |
outputStream | Stream | Output stream where encrypted data should be written |
bufferLength | int | Size of read buffer in bytes |
return | void |
public FindAllObjects ( List |
||
attributes | List |
Attributes that should be matched |
return | List |
public FindObjects ( int objectCount ) : List |
||
objectCount | int | Maximum number of object handles to be returned |
return | List |
public FindObjectsInit ( List |
||
attributes | List |
Attributes that should be matched |
return | void |
public GenerateKey ( |
||
mechanism | Generation mechanism | |
attributes | List |
Attributes of the new key or set of domain parameters |
return |
public GenerateKeyPair ( |
||
mechanism | Key generation mechanism | |
publicKeyAttributes | List |
Attributes of the public key |
privateKeyAttributes | List |
Attributes of the private key |
publicKeyHandle | Handle of the new public key | |
privateKeyHandle | Handle of the new private key | |
return | void |
public GenerateRandom ( int length ) : byte[] | ||
length | int | Length in bytes of the random or pseudo-random data to be generated |
return | byte[] |
public GetAttributeValue ( |
||
objectHandle | Handle of object whose attributes should be read | |
attributes | List |
List of attributes that should be read |
return | List |
public GetAttributeValue ( |
||
objectHandle | Handle of object whose attributes should be read | |
attributes | List |
List of attributes that should be read |
return | List |
public GetObjectSize ( |
||
objectHandle | Handle of object | |
return | uint |
public InitPin ( string userPin ) : void | ||
userPin | string | Pin value |
return | void |
public Login ( CKU userType, byte pin ) : void | ||
userType | CKU | Type of user |
pin | byte | Pin of user |
return | void |
public Login ( CKU userType, string pin ) : void | ||
userType | CKU | Type of user |
pin | string | Pin of user |
return | void |
public SeedRandom ( byte seed ) : void | ||
seed | byte | Seed material |
return | void |
public SetAttributeValue ( |
||
objectHandle | Handle of object whose attributes should be modified | |
attributes | List |
List of attributes that should be modified |
return | void |
public SetOperationState ( byte state, |
||
state | byte | Array of bytes obtained with GetOperationState |
encryptionKey | CK_INVALID_HANDLE or handle to the key which will be used for an ongoing encryption or decryption operation in the restored session | |
authenticationKey | CK_INVALID_HANDLE or handle to the key which will be used for an ongoing signature, MACing, or verification operation in the restored session | |
return | void |
public SetPin ( byte oldPin, byte newPin ) : void | ||
oldPin | byte | Old PIN value |
newPin | byte | New PIN value |
return | void |
public SetPin ( string oldPin, string newPin ) : void | ||
oldPin | string | Old PIN value |
newPin | string | New PIN value |
return | void |
public Sign ( |
||
mechanism | Signature mechanism | |
keyHandle | Signature key | |
inputStream | Stream | Input stream from which data should be read |
return | byte[] |
public Sign ( |
||
mechanism | Signature mechanism | |
keyHandle | Signature key | |
inputStream | Stream | Input stream from which data should be read |
bufferLength | int | Size of read buffer in bytes |
return | byte[] |
public Sign ( |
||
mechanism | Signature mechanism | |
keyHandle | Signature key | |
data | byte | Data to be signed |
return | byte[] |
public SignEncrypt ( |
||
signingMechanism | Signing mechanism | |
signingKeyHandle | Handle of the signing key | |
encryptionMechanism | Encryption mechanism | |
encryptionKeyHandle | Handle of the encryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where encrypted data should be written |
return | byte[] |
public SignEncrypt ( |
||
signingMechanism | Signing mechanism | |
signingKeyHandle | Handle of the signing key | |
encryptionMechanism | Encryption mechanism | |
encryptionKeyHandle | Handle of the encryption key | |
inputStream | Stream | Input stream from which data to be processed should be read |
outputStream | Stream | Output stream where encrypted data should be written |
bufferLength | int | Size of read buffer in bytes |
return | byte[] |
public SignEncrypt ( |
||
signingMechanism | Signing mechanism | |
signingKeyHandle | Handle of the signing key | |
encryptionMechanism | Encryption mechanism | |
encryptionKeyHandle | Handle of the encryption key | |
data | byte | Data to be processed |
signature | byte | Signature |
encryptedData | byte | Encrypted data |
return | void |
public SignRecover ( |
||
mechanism | Signature mechanism | |
keyHandle | Signature key | |
data | byte | Data to be signed |
return | byte[] |
public UnwrapKey ( |
||
mechanism | Unwrapping mechanism | |
unwrappingKeyHandle | Handle of unwrapping key | |
wrappedKey | byte | Wrapped key |
attributes | List |
Attributes for unwrapped key |
return |
public Verify ( |
||
mechanism | Verification mechanism; | |
keyHandle | Verification key | |
inputStream | Stream | Input stream from which data that was signed should be read |
signature | byte | Signature |
isValid | bool | Flag indicating whether signature is valid |
return | void |
public Verify ( |
||
mechanism | Verification mechanism; | |
keyHandle | Verification key | |
inputStream | Stream | Input stream from which data that was signed should be read |
signature | byte | Signature |
isValid | bool | Flag indicating whether signature is valid |
bufferLength | int | Size of read buffer in bytes |
return | void |
public Verify ( |
||
mechanism | Verification mechanism; | |
keyHandle | Verification key | |
data | byte | Data that was signed |
signature | byte | Signature |
isValid | bool | Flag indicating whether signature is valid |
return | void |
public VerifyRecover ( |
||
mechanism | Verification mechanism; | |
keyHandle | Verification key | |
signature | byte | Signature |
isValid | bool | Flag indicating whether signature is valid |
return | byte[] |
public WrapKey ( |
||
mechanism | Wrapping mechanism | |
wrappingKeyHandle | Handle of wrapping key | |
keyHandle | Handle of key to be wrapped | |
return | byte[] |