NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvpkcs11.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION and its licensors retain all intellectual property
6  * and proprietary rights in and to this software, related documentation
7  * and any modifications thereto. Any use, reproduction, disclosure or
8  * distribution of this software and related documentation without an express
9  * license agreement from NVIDIA CORPORATION is strictly prohibited.
10  */
11 
20 #ifndef NVPKCS11_H_
21 #define NVPKCS11_H_
22 
23 #include <stddef.h>
24 #include <stdint.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
40 #define CK_PTR *
41 
42 #define CK_DECLARE_FUNCTION(returnType, name) \
43  returnType name
44 
45 #define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
46  returnType (* name)
47 
48 #define CK_CALLBACK_FUNCTION(returnType, name) \
49  returnType (* name)
50 
51 #ifndef NULL_PTR
52 #define NULL_PTR NULL
53 #endif
54 
55 
61 #include "pkcs11.h"
62 #include "nvpkcs11_future.h"
63 
64 
75 typedef CK_ULONG CK_NVIDIA_CHANNEL_HANDLE;
78 
80 typedef CK_FLAGS CK_NVIDIA_FLAGS;
83 
94 
95 
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
220 (
221  CK_SESSION_HANDLE hSession,
222  CK_BYTE_PTR pIV,
223  CK_BYTE_PTR pIVLen
224 );
225 
227 #define C_EncryptGetIV C_NVIDIA_EncryptGetIV
228 
230 typedef CK_RV (* CK_C_NVIDIA_EncryptGetIV)
231 (
232  CK_SESSION_HANDLE hSession,
233  CK_BYTE_PTR pIV,
234  CK_BYTE_PTR pIVLen
235 );
236 
292 extern CK_RV C_NVIDIA_CommitTokenObjects
293 (
294  CK_SESSION_HANDLE hSession,
295  CK_FLAGS flags
296 );
297 
299 typedef CK_RV (* CK_C_NVIDIA_CommitTokenObjects)
300 (
301  CK_SESSION_HANDLE hSession,
302  CK_FLAGS flags
303 );
304 
305 
354 extern CK_RV C_NVIDIA_InitializeChannel
355 (
356  CK_ULONG ulChannelId,
358  CK_NVIDIA_FLAGS_PTR pFlags
359 );
360 
362 typedef CK_RV (* CK_C_NVIDIA_InitializeChannel)
363 (
364  CK_ULONG ulChannelId,
366  CK_NVIDIA_FLAGS_PTR pFlags
367 );
368 
369 
378  CK_FLAGS operations;
381 
451 extern CK_RV C_NVIDIA_OpenSession
452 (
453  CK_SLOT_ID slotID,
454  CK_FLAGS flags,
455  CK_VOID_PTR pApplication,
456  CK_NOTIFY Notify,
457  CK_SESSION_HANDLE_PTR phSession,
458  CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR pChannelSettings,
459  CK_ULONG ulChannelSettingsCount,
460  CK_NVIDIA_FLAGS additionalFlags
461 );
462 
464 typedef CK_RV (* CK_C_NVIDIA_OpenSession)
465 (
466  CK_SLOT_ID slotID,
467  CK_FLAGS flags,
468  CK_VOID_PTR pApplication,
469  CK_NOTIFY Notify,
470  CK_SESSION_HANDLE_PTR phSession,
471  CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR pChannelSettings,
472  CK_ULONG ulChannelSettingsCount,
473  CK_NVIDIA_FLAGS additionalFlags
474 );
475 
476 
516 extern CK_RV C_NVIDIA_FinalizeChannel
517 (
518  CK_NVIDIA_CHANNEL_HANDLE hChannel
519 );
520 
522 typedef CK_RV (* CK_C_NVIDIA_FinalizeChannel)
523 (
524  CK_NVIDIA_CHANNEL_HANDLE hChannel
525 );
526 
555 extern CK_RV C_NVIDIA_SetKATParameters
556 (
557  CK_FLAGS flags
558 );
559 
561 typedef CK_RV (* CK_C_NVIDIA_SetKATParameters)
562 (
563  CK_FLAGS flags
564 );
565 
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);
631 
633 typedef CK_RV (* CK_C_NVIDIA_BatchMessageSignInit)
634 (
635  CK_SESSION_HANDLE hSession,
636  CK_MECHANISM_PTR pMechanism,
637  CK_OBJECT_HANDLE_PTR phKeys,
638  CK_ULONG ulKeysCount
639 );
640 
648  CK_VOID_PTR pParameter;
649  CK_ULONG ulParameterLen;
650  CK_BYTE_PTR pData;
651  CK_ULONG ulDataLen;
652  CK_BYTE_PTR pSignature;
653  CK_ULONG_PTR pulSignatureLen;
655  CK_RV rv;
657 
660 
714 extern CK_RV C_NVIDIA_BatchSignMessage(CK_SESSION_HANDLE hSession,
716  CK_ULONG ulBatchEntryCount);
717 
719 typedef CK_RV (* CK_C_NVIDIA_BatchSignMessage)
720 (
721  CK_SESSION_HANDLE hSession,
723  CK_ULONG ulBatchEntryCount
724 );
725 
773 extern CK_RV C_NVIDIA_BatchMessageSignFinal(CK_SESSION_HANDLE hSession);
774 
776 typedef CK_RV (* CK_C_NVIDIA_BatchMessageSignFinal)
777 (
778  CK_SESSION_HANDLE hSession
779 );
780 
837 extern CK_RV C_NVIDIA_BatchMessageVerifyInit(CK_SESSION_HANDLE hSession,
838  CK_MECHANISM_PTR pMechanism,
839  CK_OBJECT_HANDLE_PTR phKeys,
840  CK_ULONG ulKeysCount);
841 
843 typedef CK_RV (* CK_C_NVIDIA_BatchMessageVerifyInit)
844 (
845  CK_SESSION_HANDLE hSession,
846  CK_MECHANISM_PTR pMechanism,
847  CK_OBJECT_HANDLE_PTR phKeys,
848  CK_ULONG ulKeysCount
849 );
850 
904 extern CK_RV C_NVIDIA_BatchVerifyMessage(CK_SESSION_HANDLE hSession,
906  CK_ULONG ulBatchEntryCount);
907 
909 typedef CK_RV (* CK_C_NVIDIA_BatchVerifyMessage)
910 (
911  CK_SESSION_HANDLE hSession,
913  CK_ULONG ulBatchEntryCount
914 );
915 
962 extern CK_RV C_NVIDIA_BatchMessageVerifyFinal(CK_SESSION_HANDLE hSession);
963 
965 typedef CK_RV (* CK_C_NVIDIA_BatchMessageVerifyFinal)
966 (
967  CK_SESSION_HANDLE hSession
968 );
969 
1017 extern CK_RV C_NVIDIA_GetChannelIdList(CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount);
1018 
1020 typedef CK_RV (* CK_C_NVIDIA_GetChannelList)
1022  CK_ULONG_PTR pChannelIdList,
1023  CK_ULONG_PTR pulCount
1024 );
1025 
1084 extern CK_RV C_NVIDIA_GetChannelIdAttributeValue(CK_ULONG ulChannelId, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount);
1085 
1087 typedef CK_RV (* CK_C_NVIDIA_GetChannelAttributeValue)
1089  CK_ULONG ulChannelId,
1090  CK_ATTRIBUTE_PTR pTemplate,
1091  CK_ULONG ulCount
1092 );
1093 
1142 extern CK_RV C_NVIDIA_BatchDigestInit(CK_SESSION_HANDLE hSession,
1143  CK_MECHANISM_PTR pMechanism,
1144  CK_ULONG ulBatchEntryCount);
1145 
1147 typedef CK_RV (* CK_C_NVIDIA_BatchDigestInit)
1149  CK_SESSION_HANDLE hSession,
1150  CK_MECHANISM_PTR pMechanism,
1151  CK_ULONG ulBatchEntryCount
1152 );
1153 
1161  CK_BYTE_PTR pData;
1162  CK_ULONG ulDataLen;
1163  CK_BYTE_PTR pDigest;
1164  CK_ULONG_PTR pulDigestLen;
1183  CK_RV rv;
1185 
1188 
1237 extern CK_RV C_NVIDIA_BatchDigest(CK_SESSION_HANDLE hSession,
1239  CK_ULONG ulBatchEntryCount);
1240 
1242 typedef CK_RV (* CK_C_NVIDIA_BatchDigest)
1244  CK_SESSION_HANDLE hSession,
1246  CK_ULONG ulBatchEntryCount
1247 );
1248 
1254  CK_VERSION NV_version;
1271 };
1272 
1300 #define CKM_NVIDIA_AES_CBC_KEY_DATA_WRAP (CKM_VENDOR_DEFINED | 0x00000001UL)
1301 
1309  CK_BYTE_PTR pData;
1310  CK_ULONG ulLen;
1311  CK_OBJECT_HANDLE hTrailingKey;
1312  CK_BYTE iv[16];
1314 
1317 
1331 #define CKM_NVIDIA_SP800_56C_TWO_STEPS_KDF (CKM_VENDOR_DEFINED | 0x00000002UL)
1332 
1340  CK_MECHANISM_TYPE prfType;
1341  CK_BYTE_PTR pSalt;
1342  CK_ULONG ulSaltLen;
1343  CK_BYTE_PTR pInfo;
1344  CK_ULONG ulInfoLen;
1345  CK_BYTE ctr;
1347 
1350 
1361 #define CKM_NVIDIA_MACSEC_AES_KEY_WRAP (CKM_VENDOR_DEFINED | 0x00000003UL)
1362 
1370  CK_BYTE_PTR pIv;
1371  CK_ULONG ulIvLen;
1372  CK_BYTE_PTR pMACsecMetadata;
1375 
1378 
1385  uint64_t iova;
1386  CK_BYTE_PTR pVa;
1387  CK_ULONG ulDataLen;
1390 
1393 
1400 {
1401  CK_ULONG ulDataArrayCount;
1404 
1407 
1416 #define CKM_NVIDIA_PSC_AES_CMAC (CKM_VENDOR_DEFINED | 0x00000004UL)
1417 
1429 #define CKM_NVIDIA_AES_GCM_KEY_UNWRAP (CKM_VENDOR_DEFINED | 0x00000005UL)
1430 
1440 #define CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION (CKM_VENDOR_DEFINED | 0x00000006UL)
1441 
1449  CK_BYTE_PTR pUid;
1450  CK_ULONG ulUidLen;
1451  CK_BYTE_PTR pNonce;
1452  CK_ULONG ulNonceLen;
1453  CK_BYTE signature[32];
1455 
1458 
1478 #define CKM_NVIDIA_SP800_56A_ONE_STEP_KDF (CKM_VENDOR_DEFINED | 0x00000007UL)
1479 
1487  CK_OBJECT_HANDLE hExtraKey;
1488  CK_MECHANISM_TYPE prfType;
1489  CK_BYTE_PTR pInfo;
1490  CK_ULONG ulInfoLen;
1491  CK_ULONG ulKeyOffset;
1493 
1496 
1506 #define CKM_NVIDIA_TSECRADAR_AES_CMAC (CKM_VENDOR_DEFINED | 0x00000008UL)
1507 
1517 #define CKM_NVIDIA_SHA256_KEY_DERIVATION (CKM_VENDOR_DEFINED | 0x00000009UL)
1518 
1526  CK_BYTE_PTR pUid;
1527  CK_ULONG ulUidLen;
1528  CK_BYTE_PTR pNonce;
1529  CK_ULONG ulNonceLen;
1530  CK_ULONG ulKeyOffset;
1531  CK_BYTE signature[32];
1533 
1536 
1538 #ifdef __cplusplus
1539 }
1540 #endif
1541 
1542 #endif /* NVPKCS11_H_ */
1543 
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR
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.
Definition: nvpkcs11.h:659
CK_NVIDIA_BATCH_DIGEST_ENTRY
CK_NVIDIA_BATCH_DIGEST_ENTRY provides the parameters, the input, and the output for a single batch en...
Definition: nvpkcs11.h:1160
C_NVIDIA_BatchMessageSignFinal
CK_RV C_NVIDIA_BatchMessageSignFinal(CK_SESSION_HANDLE hSession)
C_NVIDIA_BatchMessageSignFinal finishes a batch message-based signature process.
CK_NVIDIA_ZERO_COPY_LIST::pZeroCopyData
CK_NVIDIA_ZERO_COPY_ENTRY_PTR pZeroCopyData
Pointer to zero copy data.
Definition: nvpkcs11.h:1402
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS
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_PTR
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.
Definition: nvpkcs11.h:1377
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS::pInfo
CK_BYTE_PTR pInfo
Info string for the expand stage of the KDF.
Definition: nvpkcs11.h:1343
CK_NVIDIA_FLAGS
CK_FLAGS CK_NVIDIA_FLAGS
Declaration of CK_NVIDIA_FLAGS as a type.
Definition: nvpkcs11.h:80
C_NVIDIA_BatchMessageVerifyInit
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.
CK_NVIDIA_BATCH_DIGEST_ENTRY
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_C_NVIDIA_InitializeChannel
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
Definition: nvpkcs11.h:363
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::pParameter
CK_VOID_PTR pParameter
Pointer to the parameter if required by the mechanism.
Definition: nvpkcs11.h:648
CK_NVIDIA_BATCH_DIGEST_ENTRY::pDigest
CK_BYTE_PTR pDigest
Pointer to get the digest.
Definition: nvpkcs11.h:1163
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS::prfType
CK_MECHANISM_TYPE prfType
Base PRF used in the underlying KDF operation.
Definition: nvpkcs11.h:1488
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS::pUid
CK_BYTE_PTR pUid
A pointer to the uid for this key derivation.
Definition: nvpkcs11.h:1449
C_NVIDIA_BatchDigestInit
CK_RV C_NVIDIA_BatchDigestInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ULONG ulBatchEntryCount)
C_NVIDIA_BatchDigestInit initializes a batch digest process.
C_NVIDIA_OpenSession
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.
NV_CK_FUNCTION_LIST::C_NVIDIA_GetChannelIdList
CK_C_NVIDIA_GetChannelList C_NVIDIA_GetChannelIdList
Function retrieves a list of available channel IDs.
Definition: nvpkcs11.h:1267
C_NVIDIA_SetKATParameters
CK_RV C_NVIDIA_SetKATParameters(CK_FLAGS flags)
C_NVIDIA_SetKATParameters is used exclusively by the NVIDIA KAT utility.
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::pSignature
CK_BYTE_PTR pSignature
Pointer to the the signature.
Definition: nvpkcs11.h:652
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS::ulUidLen
CK_ULONG ulUidLen
Length of the uid in bytes.
Definition: nvpkcs11.h:1450
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS::ulSaltLen
CK_ULONG ulSaltLen
Length of the salt pointed to in pSalt.
Definition: nvpkcs11.h:1342
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::pData
CK_BYTE_PTR pData
Pointer to the data to be signed or verified.
Definition: nvpkcs11.h:650
CK_NVIDIA_ZERO_COPY_ENTRY::ulDataLen
CK_ULONG ulDataLen
The size of the allocated buffer.
Definition: nvpkcs11.h:1387
CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS::ulIvLen
CK_ULONG ulIvLen
Length of the IV in bytes.
Definition: nvpkcs11.h:1371
CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR
CK_NVIDIA_BATCH_DIGEST_ENTRY CK_PTR CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR
Declaration of CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR as a type.
Definition: nvpkcs11.h:1187
C_NVIDIA_FinalizeChannel
CK_RV C_NVIDIA_FinalizeChannel(CK_NVIDIA_CHANNEL_HANDLE hChannel)
C_NVIDIA_FinalizeChannel closes a channel handle if it is not in use.
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS::hTrailingKey
CK_OBJECT_HANDLE hTrailingKey
Handle to the second key to be wrapped.
Definition: nvpkcs11.h:1311
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS::hExtraKey
CK_OBJECT_HANDLE hExtraKey
Extra key handle to be appended to the base key before the KDF expansion stage.
Definition: nvpkcs11.h:1487
CK_NVIDIA_ZERO_COPY_LIST
struct CK_NVIDIA_ZERO_COPY_LIST CK_NVIDIA_ZERO_COPY_LIST
CK_NVIDIA_ZERO_COPY_LIST provides multiple zero copy data addresses.
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::ulParameterLen
CK_ULONG ulParameterLen
Length in bytes of the parameter.
Definition: nvpkcs11.h:649
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS::ulKeyOffset
CK_ULONG ulKeyOffset
Starting index in the key stream for the derived key.
Definition: nvpkcs11.h:1530
CK_NVIDIA_ZERO_COPY_ENTRY::iova
uint64_t iova
The IOVA address of the allocated buffer, for lib use only.
Definition: nvpkcs11.h:1385
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::pulSignatureLen
CK_ULONG_PTR pulSignatureLen
Pointer to the location that holds the length of the signature.
Definition: nvpkcs11.h:653
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS::pNonce
CK_BYTE_PTR pNonce
A pointer to the nonce for this key derivation.
Definition: nvpkcs11.h:1451
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::ulDataLen
CK_ULONG ulDataLen
Length in bytes of the data to be signed or verified.
Definition: nvpkcs11.h:651
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchMessageVerifyInit
CK_C_NVIDIA_BatchMessageVerifyInit C_NVIDIA_BatchMessageVerifyInit
Function initializes a batch message-based signature verification process.
Definition: nvpkcs11.h:1264
CK_NVIDIA_CHANNEL_ATTRIBUTE
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_PTR
NV_CK_FUNCTION_LIST_PTR CK_PTR NV_CK_FUNCTION_LIST_PTR_PTR
Declaration of NV_CK_FUNCTION_LIST_PTR_PTR as a type.
Definition: nvpkcs11.h:93
NV_CK_FUNCTION_LIST::C_NVIDIA_EncryptGetIV
CK_C_NVIDIA_EncryptGetIV C_NVIDIA_EncryptGetIV
Function to retrieve Initialization Vector (IV) after an encrypt operation.
Definition: nvpkcs11.h:1255
CK_C_NVIDIA_GetChannelList
CK_RV(* CK_C_NVIDIA_GetChannelList)(CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount)
pointer to C_NVIDIA_GetChannelIdList
Definition: nvpkcs11.h:1021
CK_C_NVIDIA_BatchVerifyMessage
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
Definition: nvpkcs11.h:910
CK_C_NVIDIA_FinalizeChannel
CK_RV(* CK_C_NVIDIA_FinalizeChannel)(CK_NVIDIA_CHANNEL_HANDLE hChannel)
pointer to CK_C_NVIDIA_FinalizeChannel
Definition: nvpkcs11.h:523
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...
Definition: nvpkcs11.h:1308
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_...
Definition: nvpkcs11.h:1486
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_SHA256_KEY_DERIVATIO...
Definition: nvpkcs11.h:1525
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS::ulNonceLen
CK_ULONG ulNonceLen
Length of the nonce in bytes.
Definition: nvpkcs11.h:1452
CK_NVIDIA_BATCH_DIGEST_ENTRY::ulDataLen
CK_ULONG ulDataLen
bytes of data to digest
Definition: nvpkcs11.h:1162
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS::pSalt
CK_BYTE_PTR pSalt
Pointer to the salt used for the extract portion of the KDF.
Definition: nvpkcs11.h:1341
CK_C_NVIDIA_BatchMessageVerifyFinal
CK_RV(* CK_C_NVIDIA_BatchMessageVerifyFinal)(CK_SESSION_HANDLE hSession)
pointer to C_NVIDIA_BatchMessageVerifyFinal
Definition: nvpkcs11.h:966
CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS::ulMACsecMetadataLen
CK_ULONG ulMACsecMetadataLen
Custom data length in bytes.
Definition: nvpkcs11.h:1373
CK_C_NVIDIA_BatchMessageSignFinal
CK_RV(* CK_C_NVIDIA_BatchMessageSignFinal)(CK_SESSION_HANDLE hSession)
pointer to C_NVIDIA_BatchMessageSignFinal
Definition: nvpkcs11.h:777
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS::ulInfoLen
CK_ULONG ulInfoLen
Length of the info string pointed to by pInfo.
Definition: nvpkcs11.h:1344
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchMessageSignFinal
CK_C_NVIDIA_BatchMessageSignFinal C_NVIDIA_BatchMessageSignFinal
Function finishes a batch message-based signature process.
Definition: nvpkcs11.h:1263
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS
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...
CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS
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...
C_NVIDIA_GetChannelIdList
CK_RV C_NVIDIA_GetChannelIdList(CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount)
C_NVIDIA_GetChannelIdList retrieves a list of available channel IDs.
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS::prfType
CK_MECHANISM_TYPE prfType
Base MAC used in the underlying KDF operation.
Definition: nvpkcs11.h:1340
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS::pNonce
CK_BYTE_PTR pNonce
A pointer to the nonce for this key derivation.
Definition: nvpkcs11.h:1528
CK_NVIDIA_CHANNEL_HANDLE
CK_ULONG CK_NVIDIA_CHANNEL_HANDLE
Declaration of CK_NVIDIA_CHANNEL_HANDLE as a type.
Definition: nvpkcs11.h:75
CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS::pMACsecMetadata
CK_BYTE_PTR pMACsecMetadata
Custom data pointer.
Definition: nvpkcs11.h:1372
C_NVIDIA_GetChannelIdAttributeValue
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_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS::pIv
CK_BYTE_PTR pIv
Pointer to the IV.
Definition: nvpkcs11.h:1370
CK_NVIDIA_ZERO_COPY_LIST::ulDataArrayCount
CK_ULONG ulDataArrayCount
The number of zero copy data addresses.
Definition: nvpkcs11.h:1401
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS::pUid
CK_BYTE_PTR pUid
A pointer to the uid for this key derivation.
Definition: nvpkcs11.h:1526
CK_NVIDIA_ZERO_COPY_ENTRY_PTR
CK_NVIDIA_ZERO_COPY_ENTRY CK_PTR CK_NVIDIA_ZERO_COPY_ENTRY_PTR
Declaration of CK_NVIDIA_ZERO_COPY_ENTRY_PTR as a type.
Definition: nvpkcs11.h:1392
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...
Definition: nvpkcs11.h:1339
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchVerifyMessage
CK_C_NVIDIA_BatchVerifyMessage C_NVIDIA_BatchVerifyMessage
Function verifies the signatures of a batch of messages in a single part.
Definition: nvpkcs11.h:1265
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS::ulLen
CK_ULONG ulLen
Custom data length in bytes.
Definition: nvpkcs11.h:1310
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS::signature
CK_BYTE signature[32]
Buffer to be overwritten with the computed signature i.e.
Definition: nvpkcs11.h:1453
CK_NVIDIA_ZERO_COPY_LIST
CK_NVIDIA_ZERO_COPY_LIST provides multiple zero copy data addresses.
Definition: nvpkcs11.h:1399
CK_NVIDIA_FLAGS_PTR
CK_NVIDIA_FLAGS CK_PTR CK_NVIDIA_FLAGS_PTR
Declaration of CK_NVIDIA_FLAGS_PTR as a type.
Definition: nvpkcs11.h:82
C_NVIDIA_BatchMessageVerifyFinal
CK_RV C_NVIDIA_BatchMessageVerifyFinal(CK_SESSION_HANDLE hSession)
C_NVIDIA_BatchMessageVerifyFinal finishes a batch message-based signature verification process.
C_NVIDIA_BatchVerifyMessage
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.
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS
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_PTR
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.
Definition: nvpkcs11.h:1349
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS_PTR
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.
Definition: nvpkcs11.h:1316
CK_NVIDIA_CHANNEL_HANDLE_PTR
CK_NVIDIA_CHANNEL_HANDLE CK_PTR CK_NVIDIA_CHANNEL_HANDLE_PTR
Declaration of CK_NVIDIA_CHANNEL_HANDLE_PTR as a type.
Definition: nvpkcs11.h:77
CK_C_NVIDIA_CommitTokenObjects
CK_RV(* CK_C_NVIDIA_CommitTokenObjects)(CK_SESSION_HANDLE hSession, CK_FLAGS flags)
pointer to C_NVIDIA_CommitTokenObjects
Definition: nvpkcs11.h:300
C_NVIDIA_BatchDigest
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.
NV_CK_FUNCTION_LIST::C_NVIDIA_SetKATParameters
CK_C_NVIDIA_SetKATParameters C_NVIDIA_SetKATParameters
Function is used exclusively by the NVIDIA KAT utility.
Definition: nvpkcs11.h:1260
CK_NVIDIA_CHANNEL_ATTRIBUTE::operations
CK_FLAGS operations
Operations to use with this channel.
Definition: nvpkcs11.h:378
C_NVIDIA_BatchSignMessage
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_NVIDIA_BATCH_DIGEST_ENTRY::rv
CK_RV rv
Batch entry return value (rv) contains the error code for this batch entry processing.
Definition: nvpkcs11.h:1183
CK_C_NVIDIA_OpenSession
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
Definition: nvpkcs11.h:465
CK_NVIDIA_ZERO_COPY_ENTRY::pFlags
CK_NVIDIA_FLAGS pFlags
Reserved for future use.
Definition: nvpkcs11.h:1388
CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR
CK_NVIDIA_CHANNEL_ATTRIBUTE CK_PTR CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR
pointer to a CK_NVIDIA_CHANNEL_ATTRIBUTE structure
Definition: nvpkcs11.h:382
CK_C_NVIDIA_GetChannelAttributeValue
CK_RV(* CK_C_NVIDIA_GetChannelAttributeValue)(CK_ULONG ulChannelId, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)
pointer to C_NVIDIA_GetChannelIdAttributeValue
Definition: nvpkcs11.h:1088
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS::iv
CK_BYTE iv[16]
Buffer to be overwritten with the IV generated for CBC mode.
Definition: nvpkcs11.h:1312
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchMessageSignInit
CK_C_NVIDIA_BatchMessageSignInit C_NVIDIA_BatchMessageSignInit
Function initializes a batch message-based signature process.
Definition: nvpkcs11.h:1261
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS
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_C_NVIDIA_BatchMessageSignInit
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
Definition: nvpkcs11.h:634
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS::ulNonceLen
CK_ULONG ulNonceLen
Length of the nonce in bytes.
Definition: nvpkcs11.h:1529
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY provides the parameters, the input, and the output for a single bat...
Definition: nvpkcs11.h:647
CK_C_NVIDIA_BatchMessageVerifyInit
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
Definition: nvpkcs11.h:844
CK_C_NVIDIA_BatchDigestInit
CK_RV(* CK_C_NVIDIA_BatchDigestInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ULONG ulBatchEntryCount)
pointer to C_NVIDIA_BatchDigestInit
Definition: nvpkcs11.h:1148
CK_NVIDIA_CHANNEL_ATTRIBUTE::hChannel
CK_NVIDIA_CHANNEL_HANDLE hChannel
Channel handle.
Definition: nvpkcs11.h:379
C_NVIDIA_CommitTokenObjects
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...
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS
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_NVIDIA_SHA256_KEY_DERIVATION_PARAMS::ulUidLen
CK_ULONG ulUidLen
Length of the uid in bytes.
Definition: nvpkcs11.h:1527
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY
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_NVIDIA_ZERO_COPY_ENTRY::pVa
CK_BYTE_PTR pVa
The pointer to the allocated data buffer, this is used in user space.
Definition: nvpkcs11.h:1386
NV_CK_FUNCTION_LIST::NV_version
CK_VERSION NV_version
Cryptoki version.
Definition: nvpkcs11.h:1254
CK_NVIDIA_BATCH_DIGEST_ENTRY::pData
CK_BYTE_PTR pData
Pointer to the data to be digested.
Definition: nvpkcs11.h:1161
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchDigestInit
CK_C_NVIDIA_BatchDigestInit C_NVIDIA_BatchDigestInit
Function initializes a batch digest process.
Definition: nvpkcs11.h:1269
NV_CK_FUNCTION_LIST::C_NVIDIA_CommitTokenObjects
CK_C_NVIDIA_CommitTokenObjects C_NVIDIA_CommitTokenObjects
Function to write the current dynamic state of all token objects.
Definition: nvpkcs11.h:1256
CK_NVIDIA_BATCH_DIGEST_ENTRY::additionalFlags
CK_NVIDIA_FLAGS additionalFlags
Additional flags, set CKF_NVIDIA_SKIP_BATCH_ENTRY to skip processing by the digest API.
Definition: nvpkcs11.h:1165
NV_CK_FUNCTION_LIST
NVIDIA functions list.
Definition: nvpkcs11.h:1253
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchMessageVerifyFinal
CK_C_NVIDIA_BatchMessageVerifyFinal C_NVIDIA_BatchMessageVerifyFinal
Function finishes a batch message-based signature verification process.
Definition: nvpkcs11.h:1266
NV_CK_FUNCTION_LIST::C_NVIDIA_InitializeChannel
CK_C_NVIDIA_InitializeChannel C_NVIDIA_InitializeChannel
Function to open up a connection between the PKCS11 library and the HSM.
Definition: nvpkcs11.h:1257
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS::pInfo
CK_BYTE_PTR pInfo
Info string for the expand stage of the KDF.
Definition: nvpkcs11.h:1489
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS_PTR
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.
Definition: nvpkcs11.h:1457
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS_PTR
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.
Definition: nvpkcs11.h:1495
CK_C_NVIDIA_SetKATParameters
CK_RV(* CK_C_NVIDIA_SetKATParameters)(CK_FLAGS flags)
pointer to C_NVIDIA_SetKATParameters
Definition: nvpkcs11.h:562
CK_NVIDIA_CHANNEL_ATTRIBUTE
CK_NVIDIA_CHANNEL_ATTRIBUTE provides the parameters to use a channel for a set of operations.
Definition: nvpkcs11.h:377
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchDigest
CK_C_NVIDIA_BatchDigest C_NVIDIA_BatchDigest
Function computes a single-part batch digest.
Definition: nvpkcs11.h:1270
NV_CK_FUNCTION_LIST::C_NVIDIA_BatchSignMessage
CK_C_NVIDIA_BatchSignMessage C_NVIDIA_BatchSignMessage
Function signs a batch of messages in a single part.
Definition: nvpkcs11.h:1262
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS::signature
CK_BYTE signature[32]
Buffer to be overwritten with the computed signature i.e.
Definition: nvpkcs11.h:1531
CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS_PTR
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.
Definition: nvpkcs11.h:1535
CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS::ctr
CK_BYTE ctr
Value of the counter for the expand stage of the KDF.
Definition: nvpkcs11.h:1345
CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS::pData
CK_BYTE_PTR pData
Custom data pointer.
Definition: nvpkcs11.h:1309
NV_CK_FUNCTION_LIST::C_NVIDIA_FinalizeChannel
CK_C_NVIDIA_FinalizeChannel C_NVIDIA_FinalizeChannel
Function closes the channel.
Definition: nvpkcs11.h:1259
CK_NVIDIA_ZERO_COPY_ENTRY
CK_NVIDIA_ZERO_COPY_ENTRY provides single zero copy data address.
Definition: nvpkcs11.h:1384
CK_NVIDIA_ZERO_COPY_LIST_PTR
CK_NVIDIA_ZERO_COPY_LIST CK_PTR CK_NVIDIA_ZERO_COPY_LIST_PTR
Declaration of CK_NVIDIA_ZERO_COPY_LIST_PTR as a type.
Definition: nvpkcs11.h:1406
NV_CK_FUNCTION_LIST::C_NVIDIA_OpenSession
CK_C_NVIDIA_OpenSession C_NVIDIA_OpenSession
Function is an enhanced version of C_OpenSession with extra parameters.
Definition: nvpkcs11.h:1258
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::rv
CK_RV rv
Return value from signing or verifying this batch entry.
Definition: nvpkcs11.h:655
CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS::ulInfoLen
CK_ULONG ulInfoLen
Length of the info string pointed to by pInfo.
Definition: nvpkcs11.h:1490
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...
Definition: nvpkcs11.h:1369
CK_C_NVIDIA_BatchSignMessage
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
Definition: nvpkcs11.h:720
CK_NVIDIA_BATCH_DIGEST_ENTRY::pulDigestLen
CK_ULONG_PTR pulDigestLen
Pointer to get the digest length.
Definition: nvpkcs11.h:1164
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS
CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_OX5B_SHA256_KEY...
Definition: nvpkcs11.h:1448
NV_CK_FUNCTION_LIST::C_NVIDIA_GetChannelIdAttributeValue
CK_C_NVIDIA_GetChannelAttributeValue C_NVIDIA_GetChannelIdAttributeValue
Function retrieves attribute values for a specified channel ID.
Definition: nvpkcs11.h:1268
CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY::additionalFlags
CK_NVIDIA_FLAGS additionalFlags
Bit flags to change the signing or verifying API behavior for this particular batch entry.
Definition: nvpkcs11.h:654
CK_NVIDIA_ZERO_COPY_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_PTR
NV_CK_FUNCTION_LIST CK_PTR NV_CK_FUNCTION_LIST_PTR
Declaration of NV_CK_FUNCTION_LIST_PTR as a type.
Definition: nvpkcs11.h:91
C_NVIDIA_InitializeChannel
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_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS::ulKeyOffset
CK_ULONG ulKeyOffset
Starting index in the key stream for the derived key.
Definition: nvpkcs11.h:1491
nvpkcs11_future.h
CK_C_NVIDIA_BatchDigest
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
Definition: nvpkcs11.h:1243
CK_C_NVIDIA_EncryptGetIV
CK_RV(* CK_C_NVIDIA_EncryptGetIV)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pIV, CK_BYTE_PTR pIVLen)
pointer to C_NVIDIA_EncryptGetIV
Definition: nvpkcs11.h:231