|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
42 #define CK_DECLARE_FUNCTION(returnType, name) \
45 #define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
48 #define CK_CALLBACK_FUNCTION(returnType, name) \
98 #define CKF_NVIDIA_ZERO_COPY (0x00000001UL)
99 #define CKF_NVIDIA_GCM_DECRYPT_UNAVAILABLE (0x00000002UL)
102 #define CKF_NVIDIA_HMAC_SIGN (0x0100000000UL)
103 #define CKF_NVIDIA_HMAC_VERIFY (0x0200000000UL)
104 #define CKF_NVIDIA_HMAC_MESSAGE_SIGN (0x0400000000UL)
105 #define CKF_NVIDIA_HMAC_MESSAGE_VERIFY (0x0800000000UL)
108 #define CKF_NVIDIA_TOKEN_OK (0x02000000UL)
109 #define CKF_NVIDIA_SECURE_STORAGE_FAILED (0x04000000UL)
110 #define CKF_NVIDIA_SECURE_STORAGE_TAMPERED (0x08000000UL)
111 #define CKF_NVIDIA_KEYLOAD_TIMEOUT (0x10000000UL)
112 #define CKF_NVIDIA_KEYLOAD_FAILED (0x20000000UL)
113 #define CKF_NVIDIA_TOKEN_ERROR (0x40000000UL)
114 #define CKF_NVIDIA_SECURE_STORAGE_NOT_PROVISIONED (0x80000000UL)
115 #define CKF_NVIDIA_SECURE_STORAGE_NOT_PRESENT (0x100000000UL)
118 #define CKF_NVIDIA_KAT_TEST_NONE (0x00000001UL)
119 #define CKF_NVIDIA_KAT_TEST_START (0x00000002UL)
120 #define CKF_NVIDIA_KAT_TEST_PASS (0x00000004UL)
121 #define CKF_NVIDIA_KAT_TEST_FAIL (0x00000008UL)
122 #define CKF_NVIDIA_KAT_TEST_BYPASS (0x00000010UL)
123 #define CKF_NVIDIA_KAT_TEST_LIMIT_INIT (0x00000020UL)
126 #define CKR_NVIDIA_CHANNEL_NOT_FOUND (CKR_VENDOR_DEFINED | 0x000000007UL)
127 #define CKR_NVIDIA_CHANNEL_CANNOT_OPEN (CKR_VENDOR_DEFINED | 0x000000008UL)
128 #define CKR_NVIDIA_SECURE_STORAGE_FAILED (CKR_VENDOR_DEFINED | 0x000000009UL)
129 #define CKR_NVIDIA_SECURE_STORAGE_TAMPERED (CKR_VENDOR_DEFINED | 0x000000010UL)
130 #define CKR_NVIDIA_OBJECTS_CHANGED (CKR_VENDOR_DEFINED | 0x000000011UL)
131 #define CKR_NVIDIA_FUNCTION_NOT_ALLOWED_IN_SYSTEM_STATE (CKR_VENDOR_DEFINED | 0x000000012UL)
132 #define CKR_NVIDIA_CRYPTOKI_UNAVAILABLE (CKR_VENDOR_DEFINED | 0x000000013UL)
133 #define CKR_NVIDIA_ENTRY_PARSED_NOT_PROCESSED (CKR_VENDOR_DEFINED | 0x000000014UL)
136 #define CKA_NVIDIA_CALLER_NONCE (CKA_VENDOR_DEFINED | 0x00000001UL)
137 #define CKA_NVIDIA_GCM_DECRYPT_SUPPORTED (CKA_VENDOR_DEFINED | 0x00000002UL)
138 #define CKA_NVIDIA_MAPPED_BUFFER_SIZE (CKA_VENDOR_DEFINED | 0x00000003UL)
139 #define CKA_NVIDIA_PRIORITY (CKA_VENDOR_DEFINED | 0x00000004UL)
140 #define CKA_NVIDIA_SE_ENGINE_DOMAIN (CKA_VENDOR_DEFINED | 0x00000005UL)
141 #define CKA_NVIDIA_SE_ENGINE_DOMAIN_INSTANCE_ID (CKA_VENDOR_DEFINED | 0x00000006UL)
142 #define CKA_NVIDIA_SE_PORT (CKA_VENDOR_DEFINED | 0x00000007UL)
143 #define CKA_NVIDIA_SMMU_HANDLE (CKA_VENDOR_DEFINED | 0x00000008UL)
144 #define CKA_NVIDIA_SMMU_STREAM_ID (CKA_VENDOR_DEFINED | 0x00000009UL)
145 #define CKA_NVIDIA_VIRTUALIZED_INSTANCE_ID (CKA_VENDOR_DEFINED | 0x0000000AUL)
146 #define CKA_NVIDIA_CUSTOM_SOC_PARAMS_SIZE (CKA_VENDOR_DEFINED | 0x0000000BUL)
147 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM0 (CKA_VENDOR_DEFINED | 0x0000000CUL)
148 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM1 (CKA_VENDOR_DEFINED | 0x0000000DUL)
149 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM2 (CKA_VENDOR_DEFINED | 0x0000000EUL)
150 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM3 (CKA_VENDOR_DEFINED | 0x0000000FUL)
151 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM4 (CKA_VENDOR_DEFINED | 0x00000010UL)
152 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM5 (CKA_VENDOR_DEFINED | 0x00000011UL)
153 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM6 (CKA_VENDOR_DEFINED | 0x00000012UL)
154 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM7 (CKA_VENDOR_DEFINED | 0x00000013UL)
155 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM8 (CKA_VENDOR_DEFINED | 0x00000014UL)
156 #define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM9 (CKA_VENDOR_DEFINED | 0x00000015UL)
157 #define CKA_NVIDIA_SE_COMM_ID (CKA_VENDOR_DEFINED | 0x00000016UL)
158 #define CKA_NVIDIA_CHANNEL_LABEL (CKA_VENDOR_DEFINED | 0x00000017UL)
219 extern CK_RV C_NVIDIA_EncryptGetIV
221 CK_SESSION_HANDLE hSession,
227 #define C_EncryptGetIV C_NVIDIA_EncryptGetIV
232 CK_SESSION_HANDLE hSession,
294 CK_SESSION_HANDLE hSession,
301 CK_SESSION_HANDLE hSession,
356 CK_ULONG ulChannelId,
364 CK_ULONG ulChannelId,
455 CK_VOID_PTR pApplication,
457 CK_SESSION_HANDLE_PTR phSession,
459 CK_ULONG ulChannelSettingsCount,
468 CK_VOID_PTR pApplication,
470 CK_SESSION_HANDLE_PTR phSession,
472 CK_ULONG ulChannelSettingsCount,
566 #define CKF_NVIDIA_SKIP_BATCH_ENTRY (CKF_EXTENSION | 0x00000001UL)
567 #define CKF_NVIDIA_BATCH_MESSAGE_SIGN (CKF_EXTENSION | 0x00100000UL)
568 #define CKF_NVIDIA_BATCH_MESSAGE_VERIFY (CKF_EXTENSION | 0x00200000UL)
569 #define CKF_NVIDIA_BATCH_DIGEST (CKF_EXTENSION | 0x00400000UL)
627 extern CK_RV C_NVIDIA_BatchMessageSignInit(CK_SESSION_HANDLE hSession,
628 CK_MECHANISM_PTR pMechanism,
629 CK_OBJECT_HANDLE_PTR phKeys,
630 CK_ULONG ulKeysCount);
635 CK_SESSION_HANDLE hSession,
636 CK_MECHANISM_PTR pMechanism,
637 CK_OBJECT_HANDLE_PTR phKeys,
716 CK_ULONG ulBatchEntryCount);
721 CK_SESSION_HANDLE hSession,
723 CK_ULONG ulBatchEntryCount
778 CK_SESSION_HANDLE hSession
838 CK_MECHANISM_PTR pMechanism,
839 CK_OBJECT_HANDLE_PTR phKeys,
840 CK_ULONG ulKeysCount);
845 CK_SESSION_HANDLE hSession,
846 CK_MECHANISM_PTR pMechanism,
847 CK_OBJECT_HANDLE_PTR phKeys,
906 CK_ULONG ulBatchEntryCount);
911 CK_SESSION_HANDLE hSession,
913 CK_ULONG ulBatchEntryCount
967 CK_SESSION_HANDLE hSession
1022 CK_ULONG_PTR pChannelIdList,
1023 CK_ULONG_PTR pulCount
1089 CK_ULONG ulChannelId,
1090 CK_ATTRIBUTE_PTR pTemplate,
1143 CK_MECHANISM_PTR pMechanism,
1144 CK_ULONG ulBatchEntryCount);
1149 CK_SESSION_HANDLE hSession,
1150 CK_MECHANISM_PTR pMechanism,
1151 CK_ULONG ulBatchEntryCount
1239 CK_ULONG ulBatchEntryCount);
1244 CK_SESSION_HANDLE hSession,
1246 CK_ULONG ulBatchEntryCount
1300 #define CKM_NVIDIA_AES_CBC_KEY_DATA_WRAP (CKM_VENDOR_DEFINED | 0x00000001UL)
1331 #define CKM_NVIDIA_SP800_56C_TWO_STEPS_KDF (CKM_VENDOR_DEFINED | 0x00000002UL)
1361 #define CKM_NVIDIA_MACSEC_AES_KEY_WRAP (CKM_VENDOR_DEFINED | 0x00000003UL)
1416 #define CKM_NVIDIA_PSC_AES_CMAC (CKM_VENDOR_DEFINED | 0x00000004UL)
1429 #define CKM_NVIDIA_AES_GCM_KEY_UNWRAP (CKM_VENDOR_DEFINED | 0x00000005UL)
1440 #define CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION (CKM_VENDOR_DEFINED | 0x00000006UL)
1478 #define CKM_NVIDIA_SP800_56A_ONE_STEP_KDF (CKM_VENDOR_DEFINED | 0x00000007UL)
1506 #define CKM_NVIDIA_TSECRADAR_AES_CMAC (CKM_VENDOR_DEFINED | 0x00000008UL)
1517 #define CKM_NVIDIA_SHA256_KEY_DERIVATION (CKM_VENDOR_DEFINED | 0x00000009UL)
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY CK_PTR CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR
Declaration of CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR as a type.
CK_NVIDIA_BATCH_DIGEST_ENTRY provides the parameters, the input, and the output for a single batch en...
CK_RV C_NVIDIA_BatchMessageSignFinal(CK_SESSION_HANDLE hSession)
C_NVIDIA_BatchMessageSignFinal finishes a batch message-based signature process.
CK_NVIDIA_ZERO_COPY_ENTRY_PTR pZeroCopyData
Pointer to zero copy data.
struct CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS provides the parameters to the CKM_NVIDIA_SP800_56A_ONE_STEP_...
CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS CK_PTR CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS_PTR
Declaration of CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS_PTR as a type.
CK_BYTE_PTR pInfo
Info string for the expand stage of the KDF.
CK_FLAGS CK_NVIDIA_FLAGS
Declaration of CK_NVIDIA_FLAGS as a type.
CK_RV C_NVIDIA_BatchMessageVerifyInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE_PTR phKeys, CK_ULONG ulKeysCount)
C_NVIDIA_BatchMessageVerifyInit initializes a batch message-based signature verification process.
struct CK_NVIDIA_BATCH_DIGEST_ENTRY CK_NVIDIA_BATCH_DIGEST_ENTRY
CK_NVIDIA_BATCH_DIGEST_ENTRY provides the parameters, the input, and the output for a single batch en...
CK_RV(* CK_C_NVIDIA_InitializeChannel)(CK_ULONG ulChannelId, CK_NVIDIA_CHANNEL_HANDLE_PTR phChannel, CK_NVIDIA_FLAGS_PTR pFlags)
pointer to C_NVIDIA_InitializeChannel
CK_VOID_PTR pParameter
Pointer to the parameter if required by the mechanism.
CK_BYTE_PTR pDigest
Pointer to get the digest.
CK_MECHANISM_TYPE prfType
Base PRF used in the underlying KDF operation.
CK_BYTE_PTR pUid
A pointer to the uid for this key derivation.
CK_RV C_NVIDIA_BatchDigestInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ULONG ulBatchEntryCount)
C_NVIDIA_BatchDigestInit initializes a batch digest process.
CK_RV C_NVIDIA_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_NOTIFY Notify, CK_SESSION_HANDLE_PTR phSession, CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR pChannelSettings, CK_ULONG ulChannelSettingsCount, CK_NVIDIA_FLAGS additionalFlags)
C_NVIDIA_OpenSession opens a PKCS#11 session that can be configured to use different channels.
CK_C_NVIDIA_GetChannelList C_NVIDIA_GetChannelIdList
Function retrieves a list of available channel IDs.
CK_RV C_NVIDIA_SetKATParameters(CK_FLAGS flags)
C_NVIDIA_SetKATParameters is used exclusively by the NVIDIA KAT utility.
CK_BYTE_PTR pSignature
Pointer to the the signature.
CK_ULONG ulUidLen
Length of the uid in bytes.
CK_ULONG ulSaltLen
Length of the salt pointed to in pSalt.
CK_BYTE_PTR pData
Pointer to the data to be signed or verified.
CK_ULONG ulDataLen
The size of the allocated buffer.
CK_ULONG ulIvLen
Length of the IV in bytes.
CK_NVIDIA_BATCH_DIGEST_ENTRY CK_PTR CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR
Declaration of CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR as a type.
CK_RV C_NVIDIA_FinalizeChannel(CK_NVIDIA_CHANNEL_HANDLE hChannel)
C_NVIDIA_FinalizeChannel closes a channel handle if it is not in use.
CK_OBJECT_HANDLE hTrailingKey
Handle to the second key to be wrapped.
CK_OBJECT_HANDLE hExtraKey
Extra key handle to be appended to the base key before the KDF expansion stage.
struct CK_NVIDIA_ZERO_COPY_LIST CK_NVIDIA_ZERO_COPY_LIST
CK_NVIDIA_ZERO_COPY_LIST provides multiple zero copy data addresses.
CK_ULONG ulParameterLen
Length in bytes of the parameter.
CK_ULONG ulKeyOffset
Starting index in the key stream for the derived key.
uint64_t iova
The IOVA address of the allocated buffer, for lib use only.
CK_ULONG_PTR pulSignatureLen
Pointer to the location that holds the length of the signature.
CK_BYTE_PTR pNonce
A pointer to the nonce for this key derivation.
CK_ULONG ulDataLen
Length in bytes of the data to be signed or verified.
CK_C_NVIDIA_BatchMessageVerifyInit C_NVIDIA_BatchMessageVerifyInit
Function initializes a batch message-based signature verification process.
struct CK_NVIDIA_CHANNEL_ATTRIBUTE CK_NVIDIA_CHANNEL_ATTRIBUTE
CK_NVIDIA_CHANNEL_ATTRIBUTE provides the parameters to use a channel for a set of operations.
NV_CK_FUNCTION_LIST_PTR CK_PTR NV_CK_FUNCTION_LIST_PTR_PTR
Declaration of NV_CK_FUNCTION_LIST_PTR_PTR as a type.
CK_C_NVIDIA_EncryptGetIV C_NVIDIA_EncryptGetIV
Function to retrieve Initialization Vector (IV) after an encrypt operation.
CK_RV(* CK_C_NVIDIA_GetChannelList)(CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount)
pointer to C_NVIDIA_GetChannelIdList
CK_RV(* CK_C_NVIDIA_BatchVerifyMessage)(CK_SESSION_HANDLE hSession, CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR pBatchEntry, CK_ULONG ulBatchEntryCount)
pointer to C_NVIDIA_BatchVerifyMessage
CK_RV(* CK_C_NVIDIA_FinalizeChannel)(CK_NVIDIA_CHANNEL_HANDLE hChannel)
pointer to CK_C_NVIDIA_FinalizeChannel
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS provides the parameters to the CKM_NVIDIA_AES_CBC_KEY_DATA_WRA...
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS provides the parameters to the CKM_NVIDIA_SP800_56A_ONE_STEP_...
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_SHA256_KEY_DERIVATIO...
CK_ULONG ulNonceLen
Length of the nonce in bytes.
CK_ULONG ulDataLen
bytes of data to digest
CK_BYTE_PTR pSalt
Pointer to the salt used for the extract portion of the KDF.
CK_RV(* CK_C_NVIDIA_BatchMessageVerifyFinal)(CK_SESSION_HANDLE hSession)
pointer to C_NVIDIA_BatchMessageVerifyFinal
CK_ULONG ulMACsecMetadataLen
Custom data length in bytes.
CK_RV(* CK_C_NVIDIA_BatchMessageSignFinal)(CK_SESSION_HANDLE hSession)
pointer to C_NVIDIA_BatchMessageSignFinal
CK_ULONG ulInfoLen
Length of the info string pointed to by pInfo.
CK_C_NVIDIA_BatchMessageSignFinal C_NVIDIA_BatchMessageSignFinal
Function finishes a batch message-based signature process.
struct CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_SHA256_KEY_DERIVATIO...
struct CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS
CK_CKM_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS provides the parameters to the CKM_NVIDIA_MACSEC_AES_KEY_WRA...
CK_RV C_NVIDIA_GetChannelIdList(CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount)
C_NVIDIA_GetChannelIdList retrieves a list of available channel IDs.
CK_MECHANISM_TYPE prfType
Base MAC used in the underlying KDF operation.
CK_BYTE_PTR pNonce
A pointer to the nonce for this key derivation.
CK_ULONG CK_NVIDIA_CHANNEL_HANDLE
Declaration of CK_NVIDIA_CHANNEL_HANDLE as a type.
CK_BYTE_PTR pMACsecMetadata
Custom data pointer.
CK_RV C_NVIDIA_GetChannelIdAttributeValue(CK_ULONG ulChannelId, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)
C_NVIDIA_GetChannelIdAttributeValue retrieves attribute values for a specified channel.
CK_BYTE_PTR pIv
Pointer to the IV.
CK_ULONG ulDataArrayCount
The number of zero copy data addresses.
CK_BYTE_PTR pUid
A pointer to the uid for this key derivation.
CK_NVIDIA_ZERO_COPY_ENTRY CK_PTR CK_NVIDIA_ZERO_COPY_ENTRY_PTR
Declaration of CK_NVIDIA_ZERO_COPY_ENTRY_PTR as a type.
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS provides the parameters to the CKM_NVIDIA_SP800_56C_TWO_STEP...
CK_C_NVIDIA_BatchVerifyMessage C_NVIDIA_BatchVerifyMessage
Function verifies the signatures of a batch of messages in a single part.
CK_ULONG ulLen
Custom data length in bytes.
CK_BYTE signature[32]
Buffer to be overwritten with the computed signature i.e.
CK_NVIDIA_ZERO_COPY_LIST provides multiple zero copy data addresses.
CK_NVIDIA_FLAGS CK_PTR CK_NVIDIA_FLAGS_PTR
Declaration of CK_NVIDIA_FLAGS_PTR as a type.
CK_RV C_NVIDIA_BatchMessageVerifyFinal(CK_SESSION_HANDLE hSession)
C_NVIDIA_BatchMessageVerifyFinal finishes a batch message-based signature verification process.
CK_RV C_NVIDIA_BatchVerifyMessage(CK_SESSION_HANDLE hSession, CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR pBatchEntry, CK_ULONG ulBatchEntryCount)
C_NVIDIA_BatchVerifyMessage verifies the signatures of a batch of messages in a single part.
struct CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_OX5B_SHA256_KEY...
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS CK_PTR CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS_PTR
Declaration of CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS_PTR as a type.
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS CK_PTR CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS_PTR
Declaration of CK_AES_CBC_CUSTOM_DATA_WRAP_PARAMS_PTR as a type.
CK_NVIDIA_CHANNEL_HANDLE CK_PTR CK_NVIDIA_CHANNEL_HANDLE_PTR
Declaration of CK_NVIDIA_CHANNEL_HANDLE_PTR as a type.
CK_RV(* CK_C_NVIDIA_CommitTokenObjects)(CK_SESSION_HANDLE hSession, CK_FLAGS flags)
pointer to C_NVIDIA_CommitTokenObjects
CK_RV C_NVIDIA_BatchDigest(CK_SESSION_HANDLE hSession, CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR pBatchEntry, CK_ULONG ulBatchEntryCount)
C_NVIDIA_BatchDigest processes a batch of single-part digest operations.
CK_C_NVIDIA_SetKATParameters C_NVIDIA_SetKATParameters
Function is used exclusively by the NVIDIA KAT utility.
CK_FLAGS operations
Operations to use with this channel.
CK_RV C_NVIDIA_BatchSignMessage(CK_SESSION_HANDLE hSession, CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR pBatchEntry, CK_ULONG ulBatchEntryCount)
C_NVIDIA_BatchSignMessage signs a batch of messages in a single part.
CK_RV rv
Batch entry return value (rv) contains the error code for this batch entry processing.
CK_RV(* CK_C_NVIDIA_OpenSession)(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_NOTIFY Notify, CK_SESSION_HANDLE_PTR phSession, CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR pChannelSettings, CK_ULONG ulChannelSettingsCount, CK_NVIDIA_FLAGS additionalFlags)
pointer to C_NVIDIA_OpenSession
CK_NVIDIA_FLAGS pFlags
Reserved for future use.
CK_NVIDIA_CHANNEL_ATTRIBUTE CK_PTR CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR
pointer to a CK_NVIDIA_CHANNEL_ATTRIBUTE structure
CK_RV(* CK_C_NVIDIA_GetChannelAttributeValue)(CK_ULONG ulChannelId, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)
pointer to C_NVIDIA_GetChannelIdAttributeValue
CK_BYTE iv[16]
Buffer to be overwritten with the IV generated for CBC mode.
CK_C_NVIDIA_BatchMessageSignInit C_NVIDIA_BatchMessageSignInit
Function initializes a batch message-based signature process.
struct CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS provides the parameters to the CKM_NVIDIA_SP800_56C_TWO_STEP...
CK_RV(* CK_C_NVIDIA_BatchMessageSignInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE_PTR phKeys, CK_ULONG ulKeysCount)
pointer to C_NVIDIA_BatchMessageSignInit
CK_ULONG ulNonceLen
Length of the nonce in bytes.
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY provides the parameters, the input, and the output for a single bat...
CK_RV(* CK_C_NVIDIA_BatchMessageVerifyInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE_PTR phKeys, CK_ULONG ulKeysCount)
pointer to C_NVIDIA_BatchMessageVerifyInit
CK_RV(* CK_C_NVIDIA_BatchDigestInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ULONG ulBatchEntryCount)
pointer to C_NVIDIA_BatchDigestInit
CK_NVIDIA_CHANNEL_HANDLE hChannel
Channel handle.
CK_RV C_NVIDIA_CommitTokenObjects(CK_SESSION_HANDLE hSession, CK_FLAGS flags)
C_NVIDIA_CommitTokenObjects writes the current state of token objects on the single dynamic token ref...
struct CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS provides the parameters to the CKM_NVIDIA_AES_CBC_KEY_DATA_WRA...
CK_ULONG ulUidLen
Length of the uid in bytes.
struct CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY provides the parameters, the input, and the output for a single bat...
CK_BYTE_PTR pVa
The pointer to the allocated data buffer, this is used in user space.
CK_VERSION NV_version
Cryptoki version.
CK_BYTE_PTR pData
Pointer to the data to be digested.
CK_C_NVIDIA_BatchDigestInit C_NVIDIA_BatchDigestInit
Function initializes a batch digest process.
CK_C_NVIDIA_CommitTokenObjects C_NVIDIA_CommitTokenObjects
Function to write the current dynamic state of all token objects.
CK_NVIDIA_FLAGS additionalFlags
Additional flags, set CKF_NVIDIA_SKIP_BATCH_ENTRY to skip processing by the digest API.
CK_C_NVIDIA_BatchMessageVerifyFinal C_NVIDIA_BatchMessageVerifyFinal
Function finishes a batch message-based signature verification process.
CK_C_NVIDIA_InitializeChannel C_NVIDIA_InitializeChannel
Function to open up a connection between the PKCS11 library and the HSM.
CK_BYTE_PTR pInfo
Info string for the expand stage of the KDF.
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS CK_PTR CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS_PTR
Declaration of CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS_PTR as a type.
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS CK_PTR CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS_PTR
Declaration of CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS_PTR as a type.
CK_RV(* CK_C_NVIDIA_SetKATParameters)(CK_FLAGS flags)
pointer to C_NVIDIA_SetKATParameters
CK_NVIDIA_CHANNEL_ATTRIBUTE provides the parameters to use a channel for a set of operations.
CK_C_NVIDIA_BatchDigest C_NVIDIA_BatchDigest
Function computes a single-part batch digest.
CK_C_NVIDIA_BatchSignMessage C_NVIDIA_BatchSignMessage
Function signs a batch of messages in a single part.
CK_BYTE signature[32]
Buffer to be overwritten with the computed signature i.e.
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS CK_PTR CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS_PTR
Declaration of CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS_PTR as a type.
CK_BYTE ctr
Value of the counter for the expand stage of the KDF.
CK_BYTE_PTR pData
Custom data pointer.
CK_C_NVIDIA_FinalizeChannel C_NVIDIA_FinalizeChannel
Function closes the channel.
CK_NVIDIA_ZERO_COPY_ENTRY provides single zero copy data address.
CK_NVIDIA_ZERO_COPY_LIST CK_PTR CK_NVIDIA_ZERO_COPY_LIST_PTR
Declaration of CK_NVIDIA_ZERO_COPY_LIST_PTR as a type.
CK_C_NVIDIA_OpenSession C_NVIDIA_OpenSession
Function is an enhanced version of C_OpenSession with extra parameters.
CK_RV rv
Return value from signing or verifying this batch entry.
CK_ULONG ulInfoLen
Length of the info string pointed to by pInfo.
CK_CKM_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS provides the parameters to the CKM_NVIDIA_MACSEC_AES_KEY_WRA...
CK_RV(* CK_C_NVIDIA_BatchSignMessage)(CK_SESSION_HANDLE hSession, CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR pBatchEntry, CK_ULONG ulBatchEntryCount)
pointer to C_NVIDIA_BatchSignMessage
CK_ULONG_PTR pulDigestLen
Pointer to get the digest length.
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_OX5B_SHA256_KEY...
CK_C_NVIDIA_GetChannelAttributeValue C_NVIDIA_GetChannelIdAttributeValue
Function retrieves attribute values for a specified channel ID.
CK_NVIDIA_FLAGS additionalFlags
Bit flags to change the signing or verifying API behavior for this particular batch entry.
struct CK_NVIDIA_ZERO_COPY_ENTRY CK_NVIDIA_ZERO_COPY_ENTRY
CK_NVIDIA_ZERO_COPY_ENTRY provides single zero copy data address.
NV_CK_FUNCTION_LIST CK_PTR NV_CK_FUNCTION_LIST_PTR
Declaration of NV_CK_FUNCTION_LIST_PTR as a type.
CK_RV C_NVIDIA_InitializeChannel(CK_ULONG ulChannelId, CK_NVIDIA_CHANNEL_HANDLE_PTR phChannel, CK_NVIDIA_FLAGS_PTR pFlags)
C_NVIDIA_InitializeChannel opens a channel to a hardware engine.
CK_ULONG ulKeyOffset
Starting index in the key stream for the derived key.
CK_RV(* CK_C_NVIDIA_BatchDigest)(CK_SESSION_HANDLE hSession, CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR pBatchEntry, CK_ULONG ulBatchEntryCount)
pointer to C_NVIDIA_BatchDigest
CK_RV(* CK_C_NVIDIA_EncryptGetIV)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pIV, CK_BYTE_PTR pIVLen)
pointer to C_NVIDIA_EncryptGetIV