Expand description
This module is basically a full conversion of the pkcs11f.h
C header file.
Type Aliases§
- C_
Cancel Function C_CancelFunction
is a legacy function; it cancels a function running in parallel.- C_
Close AllSessions C_CloseAllSessions
closes all sessions with a token.- C_
Close Session C_CloseSession
closes a session between an application and a token.- C_
Copy Object C_CopyObject
copies an object, creating a new object for the copy.- C_
Create Object C_CreateObject
creates a new object.- C_
Decrypt C_Decrypt
decrypts encrypted data in a single part.- C_
Decrypt Digest Update C_DecryptDigestUpdate
continues a multiple-part decryption and digesting operation.- C_
Decrypt Final C_DecryptFinal
finishes a multiple-part decryption operation.- C_
Decrypt Init C_DecryptInit
initializes a decryption operation.- C_
Decrypt Update C_DecryptUpdate
continues a multiple-part decryption operation.- C_
Decrypt Verify Update C_DecryptVerifyUpdate
continues a multiple-part decryption and verify operation.- C_
Derive Key C_DeriveKey
derives a key from a base key, creating a new key object.- C_
Destroy Object C_DestroyObject
destroys an object.- C_
Digest C_Digest
digests data in a single part.- C_
Digest Encrypt Update C_DigestEncryptUpdate
continues a multiple-part digesting and encryption operation.- C_
Digest Final C_DigestFinal
finishes a multiple-part message-digesting operation.- C_
Digest Init C_DigestInit
initializes a message-digesting operation.- C_
Digest Key C_DigestKey
continues a multi-part message-digesting operation, by digesting the value of a secret key as part of the data already digested.- C_
Digest Update C_DigestUpdate
continues a multiple-part message-digesting operation.- C_
Encrypt C_Encrypt
encrypts single-part data.- C_
Encrypt Final C_EncryptFinal
finishes a multiple-part encryption operation- C_
Encrypt Init C_EncryptInit
initializes an encryption operation.- C_
Encrypt Update C_EncryptUpdate
continues a multiple-part encryption operation.- C_
Finalize C_Finalize
indicates that an application is done with the Cryptoki library.- C_
Find Objects C_FindObjects
continues a search for token and session objects that match a template, obtaining additional object handles.- C_
Find Objects Final C_FindObjectsFinal
finishes a search for token and session objects.- C_
Find Objects Init C_FindObjectsInit
initializes a search for token and session objects that match a template.- C_
Generate Key C_GenerateKey
generates a secret key, creating a new key object.- C_
Generate KeyPair C_GenerateKeyPair
generates a public-key/private-key pair, creating new key objects.- C_
Generate Random C_GenerateRandom
generates random data.- C_
GetAttribute Value C_GetAttributeValue
obtains the value of one or more object attributes.- C_
GetFunction List C_GetFunctionList
returns the function list.- C_
GetFunction Status C_GetFunctionStatus
is a legacy function; it obtains an updated status of a function running in parallel with an application.- C_
GetInfo C_GetInfo
returns general information about Cryptoki.- C_
GetMechanism Info C_GetMechanismInfo
obtains information about a particular mechanism possibly supported by a token.- C_
GetMechanism List C_GetMechanismList
obtains a list of mechanism types supported by a token.- C_
GetObject Size C_GetObjectSize
gets the size of an object in bytes.- C_
GetOperation State C_GetOperationState
obtains the state of the cryptographic operation in a session.- C_
GetSession Info C_GetSessionInfo
obtains information about the session.- C_
GetSlot Info C_GetSlotInfo
obtains information about a particular slot in the system.- C_
GetSlot List C_GetSlotList
obtains a list of slots in the system.- C_
GetToken Info C_GetTokenInfo
obtains information about a particular token in the system.- C_
InitPIN C_InitPIN
initializes the normal user’s PIN.- C_
Init Token C_InitToken
initializes a token.- C_
Initialize C_Initialize
initializes the Cryptoki library.- C_Login
C_Login
logs a user into a token.- C_
Logout C_Logout
logs a user out from a token.- C_
Open Session C_OpenSession
opens a session between an application and a token.- C_
Seed Random C_SeedRandom
mixes additional seed material into the token’s random number generator.- C_
SetAttribute Value C_SetAttributeValue
modifies the value of one or more object attributes.- C_
SetOperation State C_SetOperationState
restores the state of the cryptographic operation in a session.- C_
SetPIN C_SetPIN
modifies the PIN of the user who is logged in.- C_Sign
C_Sign
signs (encrypts with private key) data in a single part, where the signature is (will be) an appendix to the data, and plaintext cannot be recovered from the signature.- C_
Sign Encrypt Update C_SignEncryptUpdate
continues a multiple-part signing and encryption operation.- C_
Sign Final C_SignFinal
finishes a multiple-part signature operation, returning the signature.- C_
Sign Init C_SignInit
initializes a signature (private key encryption) operation, where the signature is (will be) an appendix to the data, and plaintext cannot be recovered from the signature.- C_
Sign Recover C_SignRecover
signs data in a single operation, where the data can be recovered from the signature.- C_
Sign Recover Init C_SignRecoverInit
initializes a signature operation, where the data can be recovered from the signature.hSession
: the session’s handlepMechanism
: the signature mechanismhKey
: handle of the signature key- C_
Sign Update C_SignUpdate
continues a multiple-part signature operation, where the signature is (will be) an appendix to the data, and plaintext cannot be recovered from the signature.- C_
Unwrap Key C_UnwrapKey
unwraps (decrypts) a wrapped key, creating a new key object.- C_
Verify C_Verify
verifies a signature in a single-part operation, where the signature is an appendix to the data, and plaintext cannot be recovered from the signature.- C_
Verify Final C_VerifyFinal
finishes a multiple-part verification operation, checking the signature.- C_
Verify Init C_VerifyInit
initializes a verification operation, where the signature is an appendix to the data, and plaintext cannot cannot be recovered from the signature (e.g. DSA).- C_
Verify Recover C_VerifyRecover
verifies a signature in a single-part operation, where the data is recovered from the signature.- C_
Verify Recover Init C_VerifyRecoverInit
initializes a signature verification operation, where the data is recovered from the signature.- C_
Verify Update C_VerifyUpdate
continues a multiple-part verification operation, where the signature is an appendix to the data, and plaintext cannot be recovered from the signature.- C_
Wait ForSlot Event C_WaitForSlotEvent
waits for a slot event (token insertion, removal, etc.) to occur.- C_
Wrap Key C_WrapKey
wraps (i.e., encrypts) a key.