메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes object
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 |
public CreateObject ( List |
||
attributes | List |
Object attributes |
리턴 |
public Decrypt ( |
||
mechanism | Decryption mechanism | |
keyHandle | Handle of the decryption key | |
encryptedData | byte | Data to be decrypted |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | void |
public DeriveKey ( |
||
mechanism | Derivation mechanism | |
baseKeyHandle | Handle of base key | |
attributes | List |
Attributes for the new key |
리턴 |
public DestroyObject ( |
||
objectHandle | Handle of object to be destroyed | |
리턴 | void |
public Digest ( |
||
mechanism | Digesting mechanism | |
inputStream | Stream | Input stream from which data should be read |
리턴 | byte[] |
public Digest ( |
||
mechanism | Digesting mechanism | |
inputStream | Stream | Input stream from which data should be read |
bufferLength | int | Size of read buffer in bytes |
리턴 | byte[] |
public Digest ( |
||
mechanism | Digesting mechanism | |
data | byte | Data to be digested |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | void |
public DigestKey ( |
||
mechanism | Digesting mechanism | |
keyHandle | Handle of the secret key to be digested | |
리턴 | byte[] |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | Flag indicating whether managed resources should be disposed |
리턴 | void |
public Encrypt ( |
||
mechanism | Encryption mechanism | |
keyHandle | Handle of the encryption key | |
data | byte | Data to be encrypted |
리턴 | 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 |
리턴 | 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 |
리턴 | void |
public FindAllObjects ( List |
||
attributes | List |
Attributes that should be matched |
리턴 | List |
public FindObjects ( int objectCount ) : List |
||
objectCount | int | Maximum number of object handles to be returned |
리턴 | List |
public FindObjectsInit ( List |
||
attributes | List |
Attributes that should be matched |
리턴 | void |
public GenerateKey ( |
||
mechanism | Generation mechanism | |
attributes | List |
Attributes of the new key or set of domain parameters |
리턴 |
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 | |
리턴 | void |
public GenerateRandom ( int length ) : byte[] | ||
length | int | Length in bytes of the random or pseudo-random data to be generated |
리턴 | byte[] |
public GetAttributeValue ( |
||
objectHandle | Handle of object whose attributes should be read | |
attributes | List |
List of attributes that should be read |
리턴 | List |
public GetAttributeValue ( |
||
objectHandle | Handle of object whose attributes should be read | |
attributes | List |
List of attributes that should be read |
리턴 | List |
public GetObjectSize ( |
||
objectHandle | Handle of object | |
리턴 | uint |
public Login ( CKU userType, byte pin ) : void | ||
userType | CKU | Type of user |
pin | byte | Pin of user |
리턴 | void |
public Login ( CKU userType, string pin ) : void | ||
userType | CKU | Type of user |
pin | string | Pin of user |
리턴 | void |
public SetAttributeValue ( |
||
objectHandle | Handle of object whose attributes should be modified | |
attributes | List |
List of attributes that should be modified |
리턴 | 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 | |
리턴 | void |
public SetPin ( byte oldPin, byte newPin ) : void | ||
oldPin | byte | Old PIN value |
newPin | byte | New PIN value |
리턴 | void |
public SetPin ( string oldPin, string newPin ) : void | ||
oldPin | string | Old PIN value |
newPin | string | New PIN value |
리턴 | void |
public Sign ( |
||
mechanism | Signature mechanism | |
keyHandle | Signature key | |
inputStream | Stream | Input stream from which data should be read |
리턴 | 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 |
리턴 | byte[] |
public Sign ( |
||
mechanism | Signature mechanism | |
keyHandle | Signature key | |
data | byte | Data to be signed |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | void |
public SignRecover ( |
||
mechanism | Signature mechanism | |
keyHandle | Signature key | |
data | byte | Data to be signed |
리턴 | byte[] |
public UnwrapKey ( |
||
mechanism | Unwrapping mechanism | |
unwrappingKeyHandle | Handle of unwrapping key | |
wrappedKey | byte | Wrapped key |
attributes | List |
Attributes for unwrapped key |
리턴 |
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 |
리턴 | 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 |
리턴 | 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 |
리턴 | void |
public VerifyRecover ( |
||
mechanism | Verification mechanism; | |
keyHandle | Verification key | |
signature | byte | Signature |
isValid | bool | Flag indicating whether signature is valid |
리턴 | byte[] |
public WrapKey ( |
||
mechanism | Wrapping mechanism | |
wrappingKeyHandle | Handle of wrapping key | |
keyHandle | Handle of key to be wrapped | |
리턴 | byte[] |