Pkcs11Interop
5.1.2
|
Class representing a logical connection between an application and a token More...
Inherits Net.Pkcs11Interop.HighLevelAPI.ISession.
Public Member Functions | |
void | CloseSession () |
Closes a session between an application and a token More... | |
void | InitPin (string userPin) |
Initializes the normal user's PIN More... | |
void | InitPin (byte[] userPin) |
Initializes the normal user's PIN More... | |
void | SetPin (string oldPin, string newPin) |
Modifies the PIN of the user that is currently logged in, or the CKU_USER PIN if the session is not logged in. More... | |
void | SetPin (byte[] oldPin, byte[] newPin) |
Modifies the PIN of the user that is currently logged in, or the CKU_USER PIN if the session is not logged in. More... | |
ISessionInfo | GetSessionInfo () |
Obtains information about a session More... | |
byte [] | GetOperationState () |
Obtains a copy of the cryptographic operations state of a session encoded as an array of bytes More... | |
void | SetOperationState (byte[] state, IObjectHandle encryptionKey, IObjectHandle authenticationKey) |
Restores the cryptographic operations state of a session from an array of bytes obtained with GetOperationState More... | |
void | Login (CKU userType, string pin) |
Logs a user into a token More... | |
void | Login (CKU userType, byte[] pin) |
Logs a user into a token More... | |
void | Logout () |
Logs a user out from a token More... | |
IObjectHandle | CreateObject (List< IObjectAttribute > attributes) |
Creates a new object More... | |
IObjectHandle | CopyObject (IObjectHandle objectHandle, List< IObjectAttribute > attributes) |
Copies an object, creating a new object for the copy More... | |
void | DestroyObject (IObjectHandle objectHandle) |
Destroys an object More... | |
ulong | GetObjectSize (IObjectHandle objectHandle) |
Gets the size of an object in bytes. More... | |
List< IObjectAttribute > | GetAttributeValue (IObjectHandle objectHandle, List< CKA > attributes) |
Obtains the value of one or more attributes of an object More... | |
List< IObjectAttribute > | GetAttributeValue (IObjectHandle objectHandle, List< ulong > attributes) |
Obtains the value of one or more attributes of an object More... | |
void | SetAttributeValue (IObjectHandle objectHandle, List< IObjectAttribute > attributes) |
Modifies the value of one or more attributes of an object More... | |
void | FindObjectsInit (List< IObjectAttribute > attributes) |
Initializes a search for token and session objects that match a attributes More... | |
List< IObjectHandle > | FindObjects (int objectCount) |
Continues a search for token and session objects that match a template, obtaining additional object handles More... | |
void | FindObjectsFinal () |
Terminates a search for token and session objects More... | |
List< IObjectHandle > | FindAllObjects (List< IObjectAttribute > attributes) |
Searches for all token and session objects that match provided attributes More... | |
byte [] | Encrypt (IMechanism mechanism, IObjectHandle keyHandle, byte[] data) |
Encrypts single-part data More... | |
void | Encrypt (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream) |
Encrypts multi-part data More... | |
void | Encrypt (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream, int bufferLength) |
Encrypts multi-part data More... | |
byte [] | Decrypt (IMechanism mechanism, IObjectHandle keyHandle, byte[] encryptedData) |
Decrypts single-part data More... | |
void | Decrypt (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream) |
Decrypts multi-part data More... | |
void | Decrypt (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream, int bufferLength) |
Decrypts multi-part data More... | |
byte [] | DigestKey (IMechanism mechanism, IObjectHandle keyHandle) |
Digests the value of a secret key More... | |
byte [] | Digest (IMechanism mechanism, byte[] data) |
Digests single-part data More... | |
byte [] | Digest (IMechanism mechanism, Stream inputStream) |
Digests multi-part data More... | |
byte [] | Digest (IMechanism mechanism, Stream inputStream, int bufferLength) |
Digests multi-part data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, byte[] data) |
Signs single-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, string keyPin, byte[] data) |
Signs single-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, byte[] keyPin, byte[] data) |
Signs single-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream) |
Signs multi-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, string keyPin, Stream inputStream) |
Signs multi-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, byte[] keyPin, Stream inputStream) |
Signs multi-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, int bufferLength) |
Signs multi-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, string keyPin, Stream inputStream, int bufferLength) |
Signs multi-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, byte[] keyPin, Stream inputStream, int bufferLength) |
Signs multi-part data, where the signature is an appendix to the data More... | |
byte [] | SignRecover (IMechanism mechanism, IObjectHandle keyHandle, byte[] data) |
Signs single-part data, where the data can be recovered from the signature More... | |
byte [] | SignRecover (IMechanism mechanism, IObjectHandle keyHandle, string keyPin, byte[] data) |
Signs single-part data, where the data can be recovered from the signature More... | |
byte [] | SignRecover (IMechanism mechanism, IObjectHandle keyHandle, byte[] keyPin, byte[] data) |
Signs single-part data, where the data can be recovered from the signature More... | |
void | Verify (IMechanism mechanism, IObjectHandle keyHandle, byte[] data, byte[] signature, out bool isValid) |
Verifies a signature of data, where the signature is an appendix to the data More... | |
void | Verify (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, byte[] signature, out bool isValid) |
Verifies a signature of data, where the signature is an appendix to the data More... | |
void | Verify (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, byte[] signature, out bool isValid, int bufferLength) |
Verifies a signature of data, where the signature is an appendix to the data More... | |
byte [] | VerifyRecover (IMechanism mechanism, IObjectHandle keyHandle, byte[] signature, out bool isValid) |
Verifies signature of data, where the data can be recovered from the signature More... | |
void | DigestEncrypt (IMechanism digestingMechanism, IMechanism encryptionMechanism, IObjectHandle keyHandle, byte[] data, out byte[] digest, out byte[] encryptedData) |
Digests and encrypts data More... | |
byte [] | DigestEncrypt (IMechanism digestingMechanism, IMechanism encryptionMechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream) |
Digests and encrypts data More... | |
byte [] | DigestEncrypt (IMechanism digestingMechanism, IMechanism encryptionMechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream, int bufferLength) |
Digests and encrypts data More... | |
void | DecryptDigest (IMechanism digestingMechanism, IMechanism decryptionMechanism, IObjectHandle keyHandle, byte[] data, out byte[] digest, out byte[] decryptedData) |
Digests and decrypts data More... | |
byte [] | DecryptDigest (IMechanism digestingMechanism, IMechanism decryptionMechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream) |
Digests and decrypts data More... | |
byte [] | DecryptDigest (IMechanism digestingMechanism, IMechanism decryptionMechanism, IObjectHandle keyHandle, Stream inputStream, Stream outputStream, int bufferLength) |
Digests and decrypts data More... | |
void | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, byte[] data, out byte[] signature, out byte[] encryptedData) |
Signs and encrypts data More... | |
void | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, string signingKeyPin, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, byte[] data, out byte[] signature, out byte[] encryptedData) |
Signs and encrypts data More... | |
void | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, byte[] signingKeyPin, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, byte[] data, out byte[] signature, out byte[] encryptedData) |
Signs and encrypts data More... | |
byte [] | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, Stream inputStream, Stream outputStream) |
Signs and encrypts data More... | |
byte [] | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, string signingKeyPin, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, Stream inputStream, Stream outputStream) |
Signs and encrypts data More... | |
byte [] | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, byte[] signingKeyPin, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, Stream inputStream, Stream outputStream) |
Signs and encrypts data More... | |
byte [] | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, Stream inputStream, Stream outputStream, int bufferLength) |
Signs and encrypts data More... | |
byte [] | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, string signingKeyPin, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, Stream inputStream, Stream outputStream, int bufferLength) |
Signs and encrypts data More... | |
byte [] | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, byte[] signingKeyPin, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, Stream inputStream, Stream outputStream, int bufferLength) |
Signs and encrypts data More... | |
void | DecryptVerify (IMechanism verificationMechanism, IObjectHandle verificationKeyHandle, IMechanism decryptionMechanism, IObjectHandle decryptionKeyHandle, byte[] data, byte[] signature, out byte[] decryptedData, out bool isValid) |
Decrypts data and verifies a signature of data More... | |
void | DecryptVerify (IMechanism verificationMechanism, IObjectHandle verificationKeyHandle, IMechanism decryptionMechanism, IObjectHandle decryptionKeyHandle, Stream inputStream, Stream outputStream, byte[] signature, out bool isValid) |
Decrypts data and verifies a signature of data More... | |
void | DecryptVerify (IMechanism verificationMechanism, IObjectHandle verificationKeyHandle, IMechanism decryptionMechanism, IObjectHandle decryptionKeyHandle, Stream inputStream, Stream outputStream, byte[] signature, out bool isValid, int bufferLength) |
Decrypts data and verifies a signature of data More... | |
IObjectHandle | GenerateKey (IMechanism mechanism, List< IObjectAttribute > attributes) |
Generates a secret key or set of domain parameters, creating a new object More... | |
void | GenerateKeyPair (IMechanism mechanism, List< IObjectAttribute > publicKeyAttributes, List< IObjectAttribute > privateKeyAttributes, out IObjectHandle publicKeyHandle, out IObjectHandle privateKeyHandle) |
Generates a public/private key pair, creating new key objects More... | |
byte [] | WrapKey (IMechanism mechanism, IObjectHandle wrappingKeyHandle, IObjectHandle keyHandle) |
Wraps (i.e., encrypts) a private or secret key More... | |
IObjectHandle | UnwrapKey (IMechanism mechanism, IObjectHandle unwrappingKeyHandle, byte[] wrappedKey, List< IObjectAttribute > attributes) |
Unwraps (i.e. decrypts) a wrapped key, creating a new private key or secret key object More... | |
IObjectHandle | DeriveKey (IMechanism mechanism, IObjectHandle baseKeyHandle, List< IObjectAttribute > attributes) |
Derives a key from a base key, creating a new key object More... | |
void | SeedRandom (byte[] seed) |
Mixes additional seed material into the token's random number generator More... | |
byte [] | GenerateRandom (int length) |
Generates random or pseudo-random data More... | |
void | GetFunctionStatus () |
Legacy function which should throw CKR_FUNCTION_NOT_PARALLEL More... | |
void | CancelFunction () |
Legacy function which should throw CKR_FUNCTION_NOT_PARALLEL More... | |
void | Dispose () |
Disposes object More... | |
Protected Member Functions | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, byte[] data, bool performLogin, byte[] keyPin) |
Signs single-part data, where the signature is an appendix to the data More... | |
byte [] | Sign (IMechanism mechanism, IObjectHandle keyHandle, Stream inputStream, int bufferLength, bool performLogin, byte[] keyPin) |
Signs multi-part data, where the signature is an appendix to the data More... | |
byte [] | SignRecover (IMechanism mechanism, IObjectHandle keyHandle, byte[] data, bool performLogin, byte[] keyPin) |
Signs single-part data, where the data can be recovered from the signature More... | |
byte [] | SignEncrypt (IMechanism signingMechanism, IObjectHandle signingKeyHandle, IMechanism encryptionMechanism, IObjectHandle encryptionKeyHandle, Stream inputStream, Stream outputStream, int bufferLength, bool performLogin, byte[] signingKeyPin) |
Signs and encrypts data More... | |
virtual void | Dispose (bool disposing) |
Disposes object More... | |
Protected Attributes | |
bool | _disposed = false |
Flag indicating whether instance has been disposed More... | |
Pkcs11InteropFactories | _factories = null |
Factories to be used by Developer and Pkcs11Interop library More... | |
LowLevelAPI81.Pkcs11Library | _pkcs11Library = null |
Low level PKCS#11 wrapper More... | |
NativeULong | _sessionId = CK.CK_INVALID_HANDLE |
PKCS#11 handle of session More... | |
bool | _closeWhenDisposed = true |
Flag indicating whether session should be closed when object is disposed More... | |
Properties | |
Pkcs11InteropFactories | Factories [get] |
Factories to be used by Developer and Pkcs11Interop library More... | |
ulong | SessionId [get] |
PKCS#11 handle of session More... | |
bool | CloseWhenDisposed [get, set] |
Flag indicating whether session should be closed when object is disposed More... | |
Properties inherited from Net.Pkcs11Interop.HighLevelAPI.ISession | |
Pkcs11InteropFactories | Factories [get] |
Factories to be used by Developer and Pkcs11Interop library More... | |
ulong | SessionId [get] |
PKCS#11 handle of session More... | |
bool | CloseWhenDisposed [get] |
Flag indicating whether session should be closed when object is disposed More... | |
Class representing a logical connection between an application and a token
void Net.Pkcs11Interop.HighLevelAPI81.Session.CancelFunction | ( | ) |
Legacy function which should throw CKR_FUNCTION_NOT_PARALLEL
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.CloseSession | ( | ) |
Closes a session between an application and a token
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
IObjectHandle Net.Pkcs11Interop.HighLevelAPI81.Session.CopyObject | ( | IObjectHandle | objectHandle, |
List< IObjectAttribute > | attributes | ||
) |
Copies an object, creating a new object for the copy
objectHandle | Handle of object to be copied |
attributes | New values for any attributes of the object that can ordinarily be modified |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
IObjectHandle Net.Pkcs11Interop.HighLevelAPI81.Session.CreateObject | ( | List< IObjectAttribute > | attributes | ) |
Creates a new object
attributes | Object attributes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Decrypt | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | encryptedData | ||
) |
Decrypts single-part data
mechanism | Decryption mechanism |
keyHandle | Handle of the decryption key |
encryptedData | Data to be decrypted |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Decrypt | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream | ||
) |
Decrypts multi-part data
mechanism | Decryption mechanism |
keyHandle | Handle of the decryption key |
inputStream | Input stream from which encrypted data should be read |
outputStream | Output stream where decrypted data should be written |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Decrypt | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
int | bufferLength | ||
) |
Decrypts multi-part data
mechanism | Decryption mechanism |
keyHandle | Handle of the decryption key |
inputStream | Input stream from which encrypted data should be read |
outputStream | Output stream where decrypted data should be written |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.DecryptDigest | ( | IMechanism | digestingMechanism, |
IMechanism | decryptionMechanism, | ||
IObjectHandle | keyHandle, | ||
byte [] | data, | ||
out byte [] | digest, | ||
out byte [] | decryptedData | ||
) |
Digests and decrypts data
digestingMechanism | Digesting mechanism |
decryptionMechanism | Decryption mechanism |
keyHandle | Handle of the decryption key |
data | Data to be processed |
digest | Digest |
decryptedData | Decrypted data |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.DecryptDigest | ( | IMechanism | digestingMechanism, |
IMechanism | decryptionMechanism, | ||
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream | ||
) |
Digests and decrypts data
digestingMechanism | Digesting mechanism |
decryptionMechanism | Decryption mechanism |
keyHandle | Handle of the decryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where decrypted data should be written |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.DecryptDigest | ( | IMechanism | digestingMechanism, |
IMechanism | decryptionMechanism, | ||
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
int | bufferLength | ||
) |
Digests and decrypts data
digestingMechanism | Digesting mechanism |
decryptionMechanism | Decryption mechanism |
keyHandle | Handle of the decryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where decrypted data should be written |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.DecryptVerify | ( | IMechanism | verificationMechanism, |
IObjectHandle | verificationKeyHandle, | ||
IMechanism | decryptionMechanism, | ||
IObjectHandle | decryptionKeyHandle, | ||
byte [] | data, | ||
byte [] | signature, | ||
out byte [] | decryptedData, | ||
out bool | isValid | ||
) |
Decrypts data and verifies a signature of data
verificationMechanism | Verification mechanism |
verificationKeyHandle | Handle of the verification key |
decryptionMechanism | Decryption mechanism |
decryptionKeyHandle | Handle of the decryption key |
data | Data to be processed |
signature | Signature |
decryptedData | Decrypted data |
isValid | Flag indicating whether signature is valid |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.DecryptVerify | ( | IMechanism | verificationMechanism, |
IObjectHandle | verificationKeyHandle, | ||
IMechanism | decryptionMechanism, | ||
IObjectHandle | decryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
byte [] | signature, | ||
out bool | isValid | ||
) |
Decrypts data and verifies a signature of data
verificationMechanism | Verification mechanism |
verificationKeyHandle | Handle of the verification key |
decryptionMechanism | Decryption mechanism |
decryptionKeyHandle | Handle of the decryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where decrypted data should be written |
signature | Signature |
isValid | Flag indicating whether signature is valid |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.DecryptVerify | ( | IMechanism | verificationMechanism, |
IObjectHandle | verificationKeyHandle, | ||
IMechanism | decryptionMechanism, | ||
IObjectHandle | decryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
byte [] | signature, | ||
out bool | isValid, | ||
int | bufferLength | ||
) |
Decrypts data and verifies a signature of data
verificationMechanism | Verification mechanism |
verificationKeyHandle | Handle of the verification key |
decryptionMechanism | Decryption mechanism |
decryptionKeyHandle | Handle of the decryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where decrypted data should be written |
signature | Signature |
isValid | Flag indicating whether signature is valid |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
IObjectHandle Net.Pkcs11Interop.HighLevelAPI81.Session.DeriveKey | ( | IMechanism | mechanism, |
IObjectHandle | baseKeyHandle, | ||
List< IObjectAttribute > | attributes | ||
) |
Derives a key from a base key, creating a new key object
mechanism | Derivation mechanism |
baseKeyHandle | Handle of base key |
attributes | Attributes for the new key |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.DestroyObject | ( | IObjectHandle | objectHandle | ) |
Destroys an object
objectHandle | Handle of object to be destroyed |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Digest | ( | IMechanism | mechanism, |
byte [] | data | ||
) |
Digests single-part data
mechanism | Digesting mechanism |
data | Data to be digested |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Digest | ( | IMechanism | mechanism, |
Stream | inputStream | ||
) |
Digests multi-part data
mechanism | Digesting mechanism |
inputStream | Input stream from which data should be read |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Digest | ( | IMechanism | mechanism, |
Stream | inputStream, | ||
int | bufferLength | ||
) |
Digests multi-part data
mechanism | Digesting mechanism |
inputStream | Input stream from which data should be read |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.DigestEncrypt | ( | IMechanism | digestingMechanism, |
IMechanism | encryptionMechanism, | ||
IObjectHandle | keyHandle, | ||
byte [] | data, | ||
out byte [] | digest, | ||
out byte [] | encryptedData | ||
) |
Digests and encrypts data
digestingMechanism | Digesting mechanism |
encryptionMechanism | Encryption mechanism |
keyHandle | Handle of the encryption key |
data | Data to be processed |
digest | Digest |
encryptedData | Encrypted data |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.DigestEncrypt | ( | IMechanism | digestingMechanism, |
IMechanism | encryptionMechanism, | ||
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream | ||
) |
Digests and encrypts data
digestingMechanism | Digesting mechanism |
encryptionMechanism | Encryption mechanism |
keyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.DigestEncrypt | ( | IMechanism | digestingMechanism, |
IMechanism | encryptionMechanism, | ||
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
int | bufferLength | ||
) |
Digests and encrypts data
digestingMechanism | Digesting mechanism |
encryptionMechanism | Encryption mechanism |
keyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.DigestKey | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle | ||
) |
Digests the value of a secret key
mechanism | Digesting mechanism |
keyHandle | Handle of the secret key to be digested |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Dispose | ( | ) |
Disposes object
|
protectedvirtual |
Disposes object
disposing | Flag indicating whether managed resources should be disposed |
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Encrypt | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | data | ||
) |
Encrypts single-part data
mechanism | Encryption mechanism |
keyHandle | Handle of the encryption key |
data | Data to be encrypted |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Encrypt | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream | ||
) |
Encrypts multi-part data
mechanism | Encryption mechanism |
keyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be encrypted should be read |
outputStream | Output stream where encrypted data should be written |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Encrypt | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
int | bufferLength | ||
) |
Encrypts multi-part data
mechanism | Encryption mechanism |
keyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be encrypted should be read |
outputStream | Output stream where encrypted data should be written |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
List<IObjectHandle> Net.Pkcs11Interop.HighLevelAPI81.Session.FindAllObjects | ( | List< IObjectAttribute > | attributes | ) |
Searches for all token and session objects that match provided attributes
attributes | Attributes that should be matched |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
List<IObjectHandle> Net.Pkcs11Interop.HighLevelAPI81.Session.FindObjects | ( | int | objectCount | ) |
Continues a search for token and session objects that match a template, obtaining additional object handles
objectCount | Maximum number of object handles to be returned |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.FindObjectsFinal | ( | ) |
Terminates a search for token and session objects
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.FindObjectsInit | ( | List< IObjectAttribute > | attributes | ) |
Initializes a search for token and session objects that match a attributes
attributes | Attributes that should be matched |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
IObjectHandle Net.Pkcs11Interop.HighLevelAPI81.Session.GenerateKey | ( | IMechanism | mechanism, |
List< IObjectAttribute > | attributes | ||
) |
Generates a secret key or set of domain parameters, creating a new object
mechanism | Generation mechanism |
attributes | Attributes of the new key or set of domain parameters |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.GenerateKeyPair | ( | IMechanism | mechanism, |
List< IObjectAttribute > | publicKeyAttributes, | ||
List< IObjectAttribute > | privateKeyAttributes, | ||
out IObjectHandle | publicKeyHandle, | ||
out IObjectHandle | privateKeyHandle | ||
) |
Generates a public/private key pair, creating new key objects
mechanism | Key generation mechanism |
publicKeyAttributes | Attributes of the public key |
privateKeyAttributes | Attributes of the private key |
publicKeyHandle | Handle of the new public key |
privateKeyHandle | Handle of the new private key |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.GenerateRandom | ( | int | length | ) |
Generates random or pseudo-random data
length | Length in bytes of the random or pseudo-random data to be generated |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
List<IObjectAttribute> Net.Pkcs11Interop.HighLevelAPI81.Session.GetAttributeValue | ( | IObjectHandle | objectHandle, |
List< CKA > | attributes | ||
) |
Obtains the value of one or more attributes of an object
objectHandle | Handle of object whose attributes should be read |
attributes | List of attributes that should be read |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
List<IObjectAttribute> Net.Pkcs11Interop.HighLevelAPI81.Session.GetAttributeValue | ( | IObjectHandle | objectHandle, |
List< ulong > | attributes | ||
) |
Obtains the value of one or more attributes of an object
objectHandle | Handle of object whose attributes should be read |
attributes | List of attributes that should be read |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.GetFunctionStatus | ( | ) |
Legacy function which should throw CKR_FUNCTION_NOT_PARALLEL
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
ulong Net.Pkcs11Interop.HighLevelAPI81.Session.GetObjectSize | ( | IObjectHandle | objectHandle | ) |
Gets the size of an object in bytes.
objectHandle | Handle of object |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.GetOperationState | ( | ) |
Obtains a copy of the cryptographic operations state of a session encoded as an array of bytes
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
ISessionInfo Net.Pkcs11Interop.HighLevelAPI81.Session.GetSessionInfo | ( | ) |
Obtains information about a session
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.InitPin | ( | string | userPin | ) |
Initializes the normal user's PIN
userPin | Pin value |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.InitPin | ( | byte [] | userPin | ) |
Initializes the normal user's PIN
userPin | Pin value |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Login | ( | CKU | userType, |
string | pin | ||
) |
Logs a user into a token
userType | Type of user |
pin | Pin of user |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Login | ( | CKU | userType, |
byte [] | pin | ||
) |
Logs a user into a token
userType | Type of user |
pin | Pin of user |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Logout | ( | ) |
Logs a user out from a token
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SeedRandom | ( | byte [] | seed | ) |
Mixes additional seed material into the token's random number generator
seed | Seed material |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SetAttributeValue | ( | IObjectHandle | objectHandle, |
List< IObjectAttribute > | attributes | ||
) |
Modifies the value of one or more attributes of an object
objectHandle | Handle of object whose attributes should be modified |
attributes | List of attributes that should be modified |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SetOperationState | ( | byte [] | state, |
IObjectHandle | encryptionKey, | ||
IObjectHandle | authenticationKey | ||
) |
Restores the cryptographic operations state of a session from an array of bytes obtained with GetOperationState
state | 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 |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SetPin | ( | string | oldPin, |
string | newPin | ||
) |
Modifies the PIN of the user that is currently logged in, or the CKU_USER PIN if the session is not logged in.
oldPin | Old PIN value |
newPin | New PIN value |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SetPin | ( | byte [] | oldPin, |
byte [] | newPin | ||
) |
Modifies the PIN of the user that is currently logged in, or the CKU_USER PIN if the session is not logged in.
oldPin | Old PIN value |
newPin | New PIN value |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
|
protected |
Signs single-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
data | Data to be signed |
performLogin | Flag indicating whether context specific login should be performed |
keyPin | Context specific signature pin |
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | data | ||
) |
Signs single-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
data | Data to be signed |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
string | keyPin, | ||
byte [] | data | ||
) |
Signs single-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
data | Data to be signed |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | keyPin, | ||
byte [] | data | ||
) |
Signs single-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
data | Data to be signed |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream | ||
) |
Signs multi-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
inputStream | Input stream from which data should be read |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
string | keyPin, | ||
Stream | inputStream | ||
) |
Signs multi-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
inputStream | Input stream from which data should be read |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | keyPin, | ||
Stream | inputStream | ||
) |
Signs multi-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
inputStream | Input stream from which data should be read |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
|
protected |
Signs multi-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
inputStream | Input stream from which data should be read |
bufferLength | Size of read buffer in bytes |
performLogin | Flag indicating whether context specific login should be performed |
keyPin | Context specific signature pin |
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
int | bufferLength | ||
) |
Signs multi-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
inputStream | Input stream from which data should be read |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
string | keyPin, | ||
Stream | inputStream, | ||
int | bufferLength | ||
) |
Signs multi-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
inputStream | Input stream from which data should be read |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.Sign | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | keyPin, | ||
Stream | inputStream, | ||
int | bufferLength | ||
) |
Signs multi-part data, where the signature is an appendix to the data
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
inputStream | Input stream from which data should be read |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
byte [] | data, | ||
out byte [] | signature, | ||
out byte [] | encryptedData | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
data | Data to be processed |
signature | Signature |
encryptedData | Encrypted data |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
string | signingKeyPin, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
byte [] | data, | ||
out byte [] | signature, | ||
out byte [] | encryptedData | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
signingKeyPin | Context specific signature pin |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
data | Data to be processed |
signature | Signature |
encryptedData | Encrypted data |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
byte [] | signingKeyPin, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
byte [] | data, | ||
out byte [] | signature, | ||
out byte [] | encryptedData | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
signingKeyPin | Context specific signature pin |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
data | Data to be processed |
signature | Signature |
encryptedData | Encrypted data |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
string | signingKeyPin, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
signingKeyPin | Context specific signature pin |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
byte [] | signingKeyPin, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
signingKeyPin | Context specific signature pin |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
|
protected |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
bufferLength | Size of read buffer in bytes |
performLogin | Flag indicating whether context specific login should be performed |
signingKeyPin | Context specific signature pin |
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
int | bufferLength | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
string | signingKeyPin, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
int | bufferLength | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
signingKeyPin | Context specific signature pin |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignEncrypt | ( | IMechanism | signingMechanism, |
IObjectHandle | signingKeyHandle, | ||
byte [] | signingKeyPin, | ||
IMechanism | encryptionMechanism, | ||
IObjectHandle | encryptionKeyHandle, | ||
Stream | inputStream, | ||
Stream | outputStream, | ||
int | bufferLength | ||
) |
Signs and encrypts data
signingMechanism | Signing mechanism |
signingKeyHandle | Handle of the signing key |
signingKeyPin | Context specific signature pin |
encryptionMechanism | Encryption mechanism |
encryptionKeyHandle | Handle of the encryption key |
inputStream | Input stream from which data to be processed should be read |
outputStream | Output stream where encrypted data should be written |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
|
protected |
Signs single-part data, where the data can be recovered from the signature
mechanism | Signature mechanism |
keyHandle | Signature key |
data | Data to be signed |
performLogin | Flag indicating whether context specific login should be performed |
keyPin | Context specific signature pin |
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignRecover | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | data | ||
) |
Signs single-part data, where the data can be recovered from the signature
mechanism | Signature mechanism |
keyHandle | Signature key |
data | Data to be signed |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignRecover | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
string | keyPin, | ||
byte [] | data | ||
) |
Signs single-part data, where the data can be recovered from the signature
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
data | Data to be signed |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.SignRecover | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | keyPin, | ||
byte [] | data | ||
) |
Signs single-part data, where the data can be recovered from the signature
mechanism | Signature mechanism |
keyHandle | Signature key |
keyPin | Context specific signature pin |
data | Data to be signed |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
IObjectHandle Net.Pkcs11Interop.HighLevelAPI81.Session.UnwrapKey | ( | IMechanism | mechanism, |
IObjectHandle | unwrappingKeyHandle, | ||
byte [] | wrappedKey, | ||
List< IObjectAttribute > | attributes | ||
) |
Unwraps (i.e. decrypts) a wrapped key, creating a new private key or secret key object
mechanism | Unwrapping mechanism |
unwrappingKeyHandle | Handle of unwrapping key |
wrappedKey | Wrapped key |
attributes | Attributes for unwrapped key |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Verify | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | data, | ||
byte [] | signature, | ||
out bool | isValid | ||
) |
Verifies a signature of data, where the signature is an appendix to the data
mechanism | Verification mechanism; |
keyHandle | Verification key |
data | Data that was signed |
signature | Signature |
isValid | Flag indicating whether signature is valid |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Verify | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
byte [] | signature, | ||
out bool | isValid | ||
) |
Verifies a signature of data, where the signature is an appendix to the data
mechanism | Verification mechanism; |
keyHandle | Verification key |
inputStream | Input stream from which data that was signed should be read |
signature | Signature |
isValid | Flag indicating whether signature is valid |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
void Net.Pkcs11Interop.HighLevelAPI81.Session.Verify | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
Stream | inputStream, | ||
byte [] | signature, | ||
out bool | isValid, | ||
int | bufferLength | ||
) |
Verifies a signature of data, where the signature is an appendix to the data
mechanism | Verification mechanism; |
keyHandle | Verification key |
inputStream | Input stream from which data that was signed should be read |
signature | Signature |
isValid | Flag indicating whether signature is valid |
bufferLength | Size of read buffer in bytes |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.VerifyRecover | ( | IMechanism | mechanism, |
IObjectHandle | keyHandle, | ||
byte [] | signature, | ||
out bool | isValid | ||
) |
Verifies signature of data, where the data can be recovered from the signature
mechanism | Verification mechanism; |
keyHandle | Verification key |
signature | Signature |
isValid | Flag indicating whether signature is valid |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
byte [] Net.Pkcs11Interop.HighLevelAPI81.Session.WrapKey | ( | IMechanism | mechanism, |
IObjectHandle | wrappingKeyHandle, | ||
IObjectHandle | keyHandle | ||
) |
Wraps (i.e., encrypts) a private or secret key
mechanism | Wrapping mechanism |
wrappingKeyHandle | Handle of wrapping key |
keyHandle | Handle of key to be wrapped |
Implements Net.Pkcs11Interop.HighLevelAPI.ISession.
|
protected |
Flag indicating whether session should be closed when object is disposed
|
protected |
Flag indicating whether instance has been disposed
|
protected |
Factories to be used by Developer and Pkcs11Interop library
|
protected |
Low level PKCS#11 wrapper
|
protected |
PKCS#11 handle of session
|
getset |
Flag indicating whether session should be closed when object is disposed
|
get |
Factories to be used by Developer and Pkcs11Interop library
|
get |
PKCS#11 handle of session