NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Defines PKCS11 standard interface constants, data structures and function prototype definitions for HPSE NVIDIA Tegra products.

Defines PKCS11 vendor-specific interface extensions for HPSE NVIDIA Tegra products.

Data Structures

struct  CK_NVIDIA_CHANNEL_ATTRIBUTE
 CK_NVIDIA_CHANNEL_ATTRIBUTE provides the parameters to use a channel for a set of operations. More...
 
struct  CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY
 CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY provides the parameters, the input, and the output for a single batch entry in a batch message-based signature or signature verification process. More...
 
struct  CK_NVIDIA_BATCH_DIGEST_ENTRY
 CK_NVIDIA_BATCH_DIGEST_ENTRY provides the parameters, the input, and the output for a single batch entry in a batch digest process. More...
 
struct  NV_CK_FUNCTION_LIST
 NVIDIA functions list. More...
 
struct  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_WRAP mechanism. More...
 
struct  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_STEPS_KDF mechanism. More...
 
struct  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_WRAP mechanism. More...
 
struct  CK_NVIDIA_ZERO_COPY_ENTRY
 CK_NVIDIA_ZERO_COPY_ENTRY provides single zero copy data address. More...
 
struct  CK_NVIDIA_ZERO_COPY_LIST
 CK_NVIDIA_ZERO_COPY_LIST provides multiple zero copy data addresses. More...
 
struct  CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS
 CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION mechanism. More...
 
struct  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_KDF mechanism. More...
 
struct  CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS
 CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_SHA256_KEY_DERIVATION mechanism. More...
 

Macros

#define CKF_NVIDIA_ZERO_COPY   (0x00000001UL)
 Declaration of CKF_NVIDIA vendor extension flags. More...
 
#define CKF_NVIDIA_GCM_DECRYPT_UNAVAILABLE   (0x00000002UL)
 Indicates this channel does not support GCM decrypt operations
More...
 
#define CKF_NVIDIA_HMAC_SIGN   (0x0100000000UL)
 Extended mechanism flags used by channel feature - these follow on from CKF_EC_CURVENAME (0x80000000UL) More...
 
#define CKF_NVIDIA_HMAC_VERIFY   (0x0200000000UL)
 Used in the pChannelSettings structure of C_NVIDIA_OpenSession to indicate that a channel is to be used for HMAC verification. More...
 
#define CKF_NVIDIA_HMAC_MESSAGE_SIGN   (0x0400000000UL)
 Used in the pChannelSettings structure of C_NVIDIA_OpenSession to indicate that a channel is to be used for HMAC message-based signing. More...
 
#define CKF_NVIDIA_HMAC_MESSAGE_VERIFY   (0x0800000000UL)
 Used in the pChannelSettings structure of C_NVIDIA_OpenSession to indicate that a channel is to be used for HMAC message-based verification. More...
 
#define CKF_NVIDIA_TOKEN_OK   (0x02000000UL)
 TokenInfo extended flags - these follow on from CKF_ERROR_STATE (0x01000000UL) More...
 
#define CKF_NVIDIA_SECURE_STORAGE_FAILED   (0x04000000UL)
 This token does not have functional secure storage. More...
 
#define CKF_NVIDIA_SECURE_STORAGE_TAMPERED   (0x08000000UL)
 Secure storage may have been tampered with, is not available. More...
 
#define CKF_NVIDIA_KEYLOAD_TIMEOUT   (0x10000000UL)
 It was not possible to transfer keys in a specified time, token keys will be unavailable. More...
 
#define CKF_NVIDIA_KEYLOAD_FAILED   (0x20000000UL)
 An error occurred when loading keys, token keys will be unavailable. More...
 
#define CKF_NVIDIA_TOKEN_ERROR   (0x40000000UL)
 An unspecified error occurred with the token. More...
 
#define CKF_NVIDIA_SECURE_STORAGE_NOT_PROVISIONED   (0x80000000UL)
 Secure storage is present, but not provisioned. More...
 
#define CKF_NVIDIA_SECURE_STORAGE_NOT_PRESENT   (0x100000000UL)
 Secure storage could not be found. More...
 
#define CKF_NVIDIA_KAT_TEST_NONE   (0x00000001UL)
 KAT related flags. More...
 
#define CKF_NVIDIA_KAT_TEST_START   (0x00000002UL)
 For NVIDIA internal use only. More...
 
#define CKF_NVIDIA_KAT_TEST_PASS   (0x00000004UL)
 For NVIDIA internal use only. More...
 
#define CKF_NVIDIA_KAT_TEST_FAIL   (0x00000008UL)
 For NVIDIA internal use only. More...
 
#define CKF_NVIDIA_KAT_TEST_BYPASS   (0x00000010UL)
 For NVIDIA internal use only. More...
 
#define CKF_NVIDIA_KAT_TEST_LIMIT_INIT   (0x00000020UL)
 For NVIDIA internal use only. More...
 
#define CKR_NVIDIA_CHANNEL_NOT_FOUND   (CKR_VENDOR_DEFINED | 0x000000007UL)
 Declaration of CKR_NVIDIA vendor extension return values. More...
 
#define CKR_NVIDIA_CHANNEL_CANNOT_OPEN   (CKR_VENDOR_DEFINED | 0x000000008UL)
 The requested channel could not be opened. More...
 
#define CKR_NVIDIA_SECURE_STORAGE_FAILED   (CKR_VENDOR_DEFINED | 0x000000009UL)
 This token does not have functional secure storage. More...
 
#define CKR_NVIDIA_SECURE_STORAGE_TAMPERED   (CKR_VENDOR_DEFINED | 0x000000010UL)
 Secure storage may have been tampered, is not available. More...
 
#define CKR_NVIDIA_OBJECTS_CHANGED   (CKR_VENDOR_DEFINED | 0x000000011UL)
 The number of stored objects are different from when the search was initialised. More...
 
#define CKR_NVIDIA_FUNCTION_NOT_ALLOWED_IN_SYSTEM_STATE   (CKR_VENDOR_DEFINED | 0x000000012UL)
 This function call is not permitted in the current NVDVMS state state. More...
 
#define CKR_NVIDIA_CRYPTOKI_UNAVAILABLE   (CKR_VENDOR_DEFINED | 0x000000013UL)
 Cryptoki is unavailable due to a prior CKR_NVIDIA_FUNCTION_NOT_ALLOWED_IN_SYSTEM_STATE error. More...
 
#define CKR_NVIDIA_ENTRY_PARSED_NOT_PROCESSED   (CKR_VENDOR_DEFINED | 0x000000014UL)
 If a batch entry is parsed correctly, this value is assigned to the per-entry rv before the batch is submitted for signing/verifying. More...
 
#define CKA_NVIDIA_CALLER_NONCE   (CKA_VENDOR_DEFINED | 0x00000001UL)
 Declaration of CKA_NVIDIA vendor extension attributes. More...
 
#define CKA_NVIDIA_GCM_DECRYPT_SUPPORTED   (CKA_VENDOR_DEFINED | 0x00000002UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_MAPPED_BUFFER_SIZE   (CKA_VENDOR_DEFINED | 0x00000003UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_PRIORITY   (CKA_VENDOR_DEFINED | 0x00000004UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_SE_ENGINE_DOMAIN   (CKA_VENDOR_DEFINED | 0x00000005UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_SE_ENGINE_DOMAIN_INSTANCE_ID   (CKA_VENDOR_DEFINED | 0x00000006UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_SE_PORT   (CKA_VENDOR_DEFINED | 0x00000007UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_SMMU_HANDLE   (CKA_VENDOR_DEFINED | 0x00000008UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_SMMU_STREAM_ID   (CKA_VENDOR_DEFINED | 0x00000009UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_VIRTUALIZED_INSTANCE_ID   (CKA_VENDOR_DEFINED | 0x0000000AUL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_PARAMS_SIZE   (CKA_VENDOR_DEFINED | 0x0000000BUL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM0   (CKA_VENDOR_DEFINED | 0x0000000CUL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM1   (CKA_VENDOR_DEFINED | 0x0000000DUL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM2   (CKA_VENDOR_DEFINED | 0x0000000EUL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM3   (CKA_VENDOR_DEFINED | 0x0000000FUL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM4   (CKA_VENDOR_DEFINED | 0x00000010UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM5   (CKA_VENDOR_DEFINED | 0x00000011UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM6   (CKA_VENDOR_DEFINED | 0x00000012UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM7   (CKA_VENDOR_DEFINED | 0x00000013UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM8   (CKA_VENDOR_DEFINED | 0x00000014UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM9   (CKA_VENDOR_DEFINED | 0x00000015UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_SE_COMM_ID   (CKA_VENDOR_DEFINED | 0x00000016UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define CKA_NVIDIA_CHANNEL_LABEL   (CKA_VENDOR_DEFINED | 0x00000017UL)
 For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide. More...
 
#define C_EncryptGetIV   C_NVIDIA_EncryptGetIV
 C_EncryptGetIV is a legacy interface for C_NVIDIA_EncryptGetIV to allow for backwards compatibility. More...
 
#define CKF_NVIDIA_SKIP_BATCH_ENTRY   (CKF_EXTENSION | 0x00000001UL)
 Specifies a particular batch entry must be skipped by a batch signing API. More...
 
#define CKF_NVIDIA_BATCH_MESSAGE_SIGN   (CKF_EXTENSION | 0x00100000UL)
 Specifies a mechanism can be used with a batch signing API. More...
 
#define CKF_NVIDIA_BATCH_MESSAGE_VERIFY   (CKF_EXTENSION | 0x00200000UL)
 Specifies a mechanism can be used with a batch verifying API. More...
 
#define CKF_NVIDIA_BATCH_DIGEST   (CKF_EXTENSION | 0x00400000UL)
 Specifies a mechanism can be used with a batch digest API. More...
 
#define CKM_NVIDIA_AES_CBC_KEY_DATA_WRAP   (CKM_VENDOR_DEFINED | 0x00000001UL)
 The CKM_NVIDIA_AES_CBC_KEY_DATA_WRAP mechanism type should be used with a CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS mechanism parameter to wrap either one secret key or a pair of secret keys with custom data interleaved between the two. More...
 
#define CKM_NVIDIA_SP800_56C_TWO_STEPS_KDF   (CKM_VENDOR_DEFINED | 0x00000002UL)
 The CKM_NVIDIA_SP800_56C_TWO_STEPS_KDF mechanism type should be used with a CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS mechanism parameter to derive a secret key from a CKK_AES or CKK_GENERIC_SECRET secret. More...
 
#define CKM_NVIDIA_MACSEC_AES_KEY_WRAP   (CKM_VENDOR_DEFINED | 0x00000003UL)
 The CKM_NVIDIA_MACSEC_AES_KEY_WRAP mechanism type should be used with a CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS mechanism parameter to wrap or unwrap a secret key. More...
 
#define CKM_NVIDIA_PSC_AES_CMAC   (CKM_VENDOR_DEFINED | 0x00000004UL)
 The CKM_NVIDIA_PSC_AES_CMAC mechanism is used to authenticate MACsec-protected traffic metadata-PDUs. More...
 
#define CKM_NVIDIA_AES_GCM_KEY_UNWRAP   (CKM_VENDOR_DEFINED | 0x00000005UL)
 The CKM_NVIDIA_AES_GCM_KEY_UNWRAP mechanism type should be used with the C_UnwrapKey API and the CK_GCM_PARAMS mechanism parameter to unwrap keys. More...
 
#define CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION   (CKM_VENDOR_DEFINED | 0x00000006UL)
 The CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION mechanism type should be used with the C_DeriveKey API and the CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS mechanism parameter to derive keys. More...
 
#define CKM_NVIDIA_SP800_56A_ONE_STEP_KDF   (CKM_VENDOR_DEFINED | 0x00000007UL)
 The CKM_NVIDIA_SP800_56A_ONE_STEP_KDF mechanism type should be used with a CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS mechanism parameter to derive a secret key from a CKK_AES or CKK_GENERIC_SECRET secret. More...
 
#define CKM_NVIDIA_TSECRADAR_AES_CMAC   (CKM_VENDOR_DEFINED | 0x00000008UL)
 The CKM_NVIDIA_TSECRADAR_AES_CMAC mechanism is a drop-in replacement for CKM_AES_CMAC. More...
 
#define CKM_NVIDIA_SHA256_KEY_DERIVATION   (CKM_VENDOR_DEFINED | 0x00000009UL)
 The CKM_NVIDIA_SHA256_KEY_DERIVATION mechanism type should be used with the C_DeriveKey API and the CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS mechanism parameter to derive keys. More...
 

Typedefs

typedef CK_ULONG CK_NVIDIA_CHANNEL_HANDLE
 Declaration of CK_NVIDIA_CHANNEL_HANDLE as a type. More...
 
typedef CK_NVIDIA_CHANNEL_HANDLE CK_PTR CK_NVIDIA_CHANNEL_HANDLE_PTR
 Declaration of CK_NVIDIA_CHANNEL_HANDLE_PTR as a type. More...
 
typedef CK_FLAGS CK_NVIDIA_FLAGS
 Declaration of CK_NVIDIA_FLAGS as a type. More...
 
typedef CK_NVIDIA_FLAGS CK_PTR CK_NVIDIA_FLAGS_PTR
 Declaration of CK_NVIDIA_FLAGS_PTR as a type. More...
 
typedef struct NV_CK_FUNCTION_LIST NV_CK_FUNCTION_LIST
 Declaration of NV_CK_FUNCTION_LIST as a type. More...
 
typedef NV_CK_FUNCTION_LIST CK_PTR NV_CK_FUNCTION_LIST_PTR
 Declaration of NV_CK_FUNCTION_LIST_PTR as a type. More...
 
typedef NV_CK_FUNCTION_LIST_PTR CK_PTR NV_CK_FUNCTION_LIST_PTR_PTR
 Declaration of NV_CK_FUNCTION_LIST_PTR_PTR as a type. More...
 
typedef CK_RV(* CK_C_NVIDIA_EncryptGetIV) (CK_SESSION_HANDLE hSession, CK_BYTE_PTR pIV, CK_BYTE_PTR pIVLen)
 pointer to C_NVIDIA_EncryptGetIV More...
 
typedef CK_RV(* CK_C_NVIDIA_CommitTokenObjects) (CK_SESSION_HANDLE hSession, CK_FLAGS flags)
 pointer to C_NVIDIA_CommitTokenObjects More...
 
typedef 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 More...
 
typedef 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. More...
 
typedef CK_NVIDIA_CHANNEL_ATTRIBUTE CK_PTR CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR
 pointer to a CK_NVIDIA_CHANNEL_ATTRIBUTE structure More...
 
typedef 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 More...
 
typedef CK_RV(* CK_C_NVIDIA_FinalizeChannel) (CK_NVIDIA_CHANNEL_HANDLE hChannel)
 pointer to CK_C_NVIDIA_FinalizeChannel More...
 
typedef CK_RV(* CK_C_NVIDIA_SetKATParameters) (CK_FLAGS flags)
 pointer to C_NVIDIA_SetKATParameters More...
 
typedef 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 More...
 
typedef 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 batch entry in a batch message-based signature or signature verification process. More...
 
typedef 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. More...
 
typedef 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 More...
 
typedef CK_RV(* CK_C_NVIDIA_BatchMessageSignFinal) (CK_SESSION_HANDLE hSession)
 pointer to C_NVIDIA_BatchMessageSignFinal More...
 
typedef 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 More...
 
typedef 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 More...
 
typedef CK_RV(* CK_C_NVIDIA_BatchMessageVerifyFinal) (CK_SESSION_HANDLE hSession)
 pointer to C_NVIDIA_BatchMessageVerifyFinal More...
 
typedef CK_RV(* CK_C_NVIDIA_GetChannelList) (CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount)
 pointer to C_NVIDIA_GetChannelIdList More...
 
typedef CK_RV(* CK_C_NVIDIA_GetChannelAttributeValue) (CK_ULONG ulChannelId, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)
 pointer to C_NVIDIA_GetChannelIdAttributeValue More...
 
typedef CK_RV(* CK_C_NVIDIA_BatchDigestInit) (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ULONG ulBatchEntryCount)
 pointer to C_NVIDIA_BatchDigestInit More...
 
typedef 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 entry in a batch digest process. More...
 
typedef CK_NVIDIA_BATCH_DIGEST_ENTRY CK_PTR CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR
 Declaration of CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR as a type. More...
 
typedef 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 More...
 
typedef 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_WRAP mechanism. More...
 
typedef 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. More...
 
typedef 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_STEPS_KDF mechanism. More...
 
typedef 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. More...
 
typedef 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_WRAP mechanism. More...
 
typedef 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. More...
 
typedef struct CK_NVIDIA_ZERO_COPY_ENTRY CK_NVIDIA_ZERO_COPY_ENTRY
 CK_NVIDIA_ZERO_COPY_ENTRY provides single zero copy data address. More...
 
typedef CK_NVIDIA_ZERO_COPY_ENTRY CK_PTR CK_NVIDIA_ZERO_COPY_ENTRY_PTR
 Declaration of CK_NVIDIA_ZERO_COPY_ENTRY_PTR as a type. More...
 
typedef struct CK_NVIDIA_ZERO_COPY_LIST CK_NVIDIA_ZERO_COPY_LIST
 CK_NVIDIA_ZERO_COPY_LIST provides multiple zero copy data addresses. More...
 
typedef CK_NVIDIA_ZERO_COPY_LIST CK_PTR CK_NVIDIA_ZERO_COPY_LIST_PTR
 Declaration of CK_NVIDIA_ZERO_COPY_LIST_PTR as a type. More...
 
typedef 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_DERIVATION mechanism. More...
 
typedef 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. More...
 
typedef 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_KDF mechanism. More...
 
typedef 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. More...
 
typedef 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_DERIVATION mechanism. More...
 
typedef 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. More...
 

Functions

CK_RV C_NVIDIA_EncryptGetIV (CK_SESSION_HANDLE hSession, CK_BYTE_PTR pIV, CK_BYTE_PTR pIVLen)
 C_NVIDIA_EncryptGetIV gets the IV or CTR buffer data which was generated during the AES encryption for CBC, GCM or CTR mode. More...
 
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 referenced by the provided session handle to secure storage. More...
 
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. More...
 
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. More...
 
CK_RV C_NVIDIA_FinalizeChannel (CK_NVIDIA_CHANNEL_HANDLE hChannel)
 C_NVIDIA_FinalizeChannel closes a channel handle if it is not in use. More...
 
CK_RV C_NVIDIA_SetKATParameters (CK_FLAGS flags)
 C_NVIDIA_SetKATParameters is used exclusively by the NVIDIA KAT utility. More...
 
CK_RV C_NVIDIA_BatchMessageSignInit (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE_PTR phKeys, CK_ULONG ulKeysCount)
 C_NVIDIA_BatchMessageSignInit initializes a batch message-based signature process. More...
 
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. More...
 
CK_RV C_NVIDIA_BatchMessageSignFinal (CK_SESSION_HANDLE hSession)
 C_NVIDIA_BatchMessageSignFinal finishes a batch message-based signature process. More...
 
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. More...
 
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. More...
 
CK_RV C_NVIDIA_BatchMessageVerifyFinal (CK_SESSION_HANDLE hSession)
 C_NVIDIA_BatchMessageVerifyFinal finishes a batch message-based signature verification process. More...
 
CK_RV C_NVIDIA_GetChannelIdList (CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount)
 C_NVIDIA_GetChannelIdList retrieves a list of available channel IDs. More...
 
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. More...
 
CK_RV C_NVIDIA_BatchDigestInit (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ULONG ulBatchEntryCount)
 C_NVIDIA_BatchDigestInit initializes a batch digest process. More...
 
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. More...
 

Macro Definition Documentation

◆ C_EncryptGetIV

#define C_EncryptGetIV   C_NVIDIA_EncryptGetIV

C_EncryptGetIV is a legacy interface for C_NVIDIA_EncryptGetIV to allow for backwards compatibility.

Definition at line 227 of file nvpkcs11.h.

◆ CKA_NVIDIA_CALLER_NONCE

#define CKA_NVIDIA_CALLER_NONCE   (CKA_VENDOR_DEFINED | 0x00000001UL)

Declaration of CKA_NVIDIA vendor extension attributes.

Set when deriving a TLS session key designed to allow user nonce input

Definition at line 136 of file nvpkcs11.h.

◆ CKA_NVIDIA_CHANNEL_LABEL

#define CKA_NVIDIA_CHANNEL_LABEL   (CKA_VENDOR_DEFINED | 0x00000017UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 158 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_PARAMS_SIZE

#define CKA_NVIDIA_CUSTOM_SOC_PARAMS_SIZE   (CKA_VENDOR_DEFINED | 0x0000000BUL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 146 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM0

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM0   (CKA_VENDOR_DEFINED | 0x0000000CUL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 147 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM1

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM1   (CKA_VENDOR_DEFINED | 0x0000000DUL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 148 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM2

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM2   (CKA_VENDOR_DEFINED | 0x0000000EUL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 149 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM3

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM3   (CKA_VENDOR_DEFINED | 0x0000000FUL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 150 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM4

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM4   (CKA_VENDOR_DEFINED | 0x00000010UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 151 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM5

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM5   (CKA_VENDOR_DEFINED | 0x00000011UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 152 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM6

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM6   (CKA_VENDOR_DEFINED | 0x00000012UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 153 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM7

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM7   (CKA_VENDOR_DEFINED | 0x00000013UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 154 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM8

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM8   (CKA_VENDOR_DEFINED | 0x00000014UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 155 of file nvpkcs11.h.

◆ CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM9

#define CKA_NVIDIA_CUSTOM_SOC_SPECIFIC_PARAM9   (CKA_VENDOR_DEFINED | 0x00000015UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 156 of file nvpkcs11.h.

◆ CKA_NVIDIA_GCM_DECRYPT_SUPPORTED

#define CKA_NVIDIA_GCM_DECRYPT_SUPPORTED   (CKA_VENDOR_DEFINED | 0x00000002UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 137 of file nvpkcs11.h.

◆ CKA_NVIDIA_MAPPED_BUFFER_SIZE

#define CKA_NVIDIA_MAPPED_BUFFER_SIZE   (CKA_VENDOR_DEFINED | 0x00000003UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 138 of file nvpkcs11.h.

◆ CKA_NVIDIA_PRIORITY

#define CKA_NVIDIA_PRIORITY   (CKA_VENDOR_DEFINED | 0x00000004UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 139 of file nvpkcs11.h.

◆ CKA_NVIDIA_SE_COMM_ID

#define CKA_NVIDIA_SE_COMM_ID   (CKA_VENDOR_DEFINED | 0x00000016UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 157 of file nvpkcs11.h.

◆ CKA_NVIDIA_SE_ENGINE_DOMAIN

#define CKA_NVIDIA_SE_ENGINE_DOMAIN   (CKA_VENDOR_DEFINED | 0x00000005UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 140 of file nvpkcs11.h.

◆ CKA_NVIDIA_SE_ENGINE_DOMAIN_INSTANCE_ID

#define CKA_NVIDIA_SE_ENGINE_DOMAIN_INSTANCE_ID   (CKA_VENDOR_DEFINED | 0x00000006UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 141 of file nvpkcs11.h.

◆ CKA_NVIDIA_SE_PORT

#define CKA_NVIDIA_SE_PORT   (CKA_VENDOR_DEFINED | 0x00000007UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 142 of file nvpkcs11.h.

◆ CKA_NVIDIA_SMMU_HANDLE

#define CKA_NVIDIA_SMMU_HANDLE   (CKA_VENDOR_DEFINED | 0x00000008UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 143 of file nvpkcs11.h.

◆ CKA_NVIDIA_SMMU_STREAM_ID

#define CKA_NVIDIA_SMMU_STREAM_ID   (CKA_VENDOR_DEFINED | 0x00000009UL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 144 of file nvpkcs11.h.

◆ CKA_NVIDIA_VIRTUALIZED_INSTANCE_ID

#define CKA_NVIDIA_VIRTUALIZED_INSTANCE_ID   (CKA_VENDOR_DEFINED | 0x0000000AUL)

For details, refer to the "DT Configuration for QNX/Linux VSE Driver" section of the SDK Developer guide.

Definition at line 145 of file nvpkcs11.h.

◆ CKF_NVIDIA_BATCH_DIGEST

#define CKF_NVIDIA_BATCH_DIGEST   (CKF_EXTENSION | 0x00400000UL)

Specifies a mechanism can be used with a batch digest API.

Definition at line 569 of file nvpkcs11.h.

◆ CKF_NVIDIA_BATCH_MESSAGE_SIGN

#define CKF_NVIDIA_BATCH_MESSAGE_SIGN   (CKF_EXTENSION | 0x00100000UL)

Specifies a mechanism can be used with a batch signing API.

Definition at line 567 of file nvpkcs11.h.

◆ CKF_NVIDIA_BATCH_MESSAGE_VERIFY

#define CKF_NVIDIA_BATCH_MESSAGE_VERIFY   (CKF_EXTENSION | 0x00200000UL)

Specifies a mechanism can be used with a batch verifying API.

Definition at line 568 of file nvpkcs11.h.

◆ CKF_NVIDIA_GCM_DECRYPT_UNAVAILABLE

#define CKF_NVIDIA_GCM_DECRYPT_UNAVAILABLE   (0x00000002UL)

Indicates this channel does not support GCM decrypt operations

Definition at line 99 of file nvpkcs11.h.

◆ CKF_NVIDIA_HMAC_MESSAGE_SIGN

#define CKF_NVIDIA_HMAC_MESSAGE_SIGN   (0x0400000000UL)

Used in the pChannelSettings structure of C_NVIDIA_OpenSession to indicate that a channel is to be used for HMAC message-based signing.

Definition at line 104 of file nvpkcs11.h.

◆ CKF_NVIDIA_HMAC_MESSAGE_VERIFY

#define CKF_NVIDIA_HMAC_MESSAGE_VERIFY   (0x0800000000UL)

Used in the pChannelSettings structure of C_NVIDIA_OpenSession to indicate that a channel is to be used for HMAC message-based verification.

Definition at line 105 of file nvpkcs11.h.

◆ CKF_NVIDIA_HMAC_SIGN

#define CKF_NVIDIA_HMAC_SIGN   (0x0100000000UL)

Extended mechanism flags used by channel feature - these follow on from CKF_EC_CURVENAME (0x80000000UL)

Used in the pChannelSettings structure of C_NVIDIA_OpenSession to indicate that a channel is to be used for HMAC signing

Definition at line 102 of file nvpkcs11.h.

◆ CKF_NVIDIA_HMAC_VERIFY

#define CKF_NVIDIA_HMAC_VERIFY   (0x0200000000UL)

Used in the pChannelSettings structure of C_NVIDIA_OpenSession to indicate that a channel is to be used for HMAC verification.

Definition at line 103 of file nvpkcs11.h.

◆ CKF_NVIDIA_KAT_TEST_BYPASS

#define CKF_NVIDIA_KAT_TEST_BYPASS   (0x00000010UL)

For NVIDIA internal use only.

Definition at line 122 of file nvpkcs11.h.

◆ CKF_NVIDIA_KAT_TEST_FAIL

#define CKF_NVIDIA_KAT_TEST_FAIL   (0x00000008UL)

For NVIDIA internal use only.

Definition at line 121 of file nvpkcs11.h.

◆ CKF_NVIDIA_KAT_TEST_LIMIT_INIT

#define CKF_NVIDIA_KAT_TEST_LIMIT_INIT   (0x00000020UL)

For NVIDIA internal use only.

Definition at line 123 of file nvpkcs11.h.

◆ CKF_NVIDIA_KAT_TEST_NONE

#define CKF_NVIDIA_KAT_TEST_NONE   (0x00000001UL)

KAT related flags.

For NVIDIA internal use only

Definition at line 118 of file nvpkcs11.h.

◆ CKF_NVIDIA_KAT_TEST_PASS

#define CKF_NVIDIA_KAT_TEST_PASS   (0x00000004UL)

For NVIDIA internal use only.

Definition at line 120 of file nvpkcs11.h.

◆ CKF_NVIDIA_KAT_TEST_START

#define CKF_NVIDIA_KAT_TEST_START   (0x00000002UL)

For NVIDIA internal use only.

Definition at line 119 of file nvpkcs11.h.

◆ CKF_NVIDIA_KEYLOAD_FAILED

#define CKF_NVIDIA_KEYLOAD_FAILED   (0x20000000UL)

An error occurred when loading keys, token keys will be unavailable.

Definition at line 112 of file nvpkcs11.h.

◆ CKF_NVIDIA_KEYLOAD_TIMEOUT

#define CKF_NVIDIA_KEYLOAD_TIMEOUT   (0x10000000UL)

It was not possible to transfer keys in a specified time, token keys will be unavailable.

Definition at line 111 of file nvpkcs11.h.

◆ CKF_NVIDIA_SECURE_STORAGE_FAILED

#define CKF_NVIDIA_SECURE_STORAGE_FAILED   (0x04000000UL)

This token does not have functional secure storage.

Definition at line 109 of file nvpkcs11.h.

◆ CKF_NVIDIA_SECURE_STORAGE_NOT_PRESENT

#define CKF_NVIDIA_SECURE_STORAGE_NOT_PRESENT   (0x100000000UL)

Secure storage could not be found.

Definition at line 115 of file nvpkcs11.h.

◆ CKF_NVIDIA_SECURE_STORAGE_NOT_PROVISIONED

#define CKF_NVIDIA_SECURE_STORAGE_NOT_PROVISIONED   (0x80000000UL)

Secure storage is present, but not provisioned.

Definition at line 114 of file nvpkcs11.h.

◆ CKF_NVIDIA_SECURE_STORAGE_TAMPERED

#define CKF_NVIDIA_SECURE_STORAGE_TAMPERED   (0x08000000UL)

Secure storage may have been tampered with, is not available.

Definition at line 110 of file nvpkcs11.h.

◆ CKF_NVIDIA_SKIP_BATCH_ENTRY

#define CKF_NVIDIA_SKIP_BATCH_ENTRY   (CKF_EXTENSION | 0x00000001UL)

Specifies a particular batch entry must be skipped by a batch signing API.

Definition at line 566 of file nvpkcs11.h.

◆ CKF_NVIDIA_TOKEN_ERROR

#define CKF_NVIDIA_TOKEN_ERROR   (0x40000000UL)

An unspecified error occurred with the token.

Definition at line 113 of file nvpkcs11.h.

◆ CKF_NVIDIA_TOKEN_OK

#define CKF_NVIDIA_TOKEN_OK   (0x02000000UL)

TokenInfo extended flags - these follow on from CKF_ERROR_STATE (0x01000000UL)

Secure storage is available

Definition at line 108 of file nvpkcs11.h.

◆ CKF_NVIDIA_ZERO_COPY

#define CKF_NVIDIA_ZERO_COPY   (0x00000001UL)

Declaration of CKF_NVIDIA vendor extension flags.

Channel related flags Indicates this channel must be used with zero copy buffers

Definition at line 98 of file nvpkcs11.h.

◆ CKM_NVIDIA_AES_CBC_KEY_DATA_WRAP

#define CKM_NVIDIA_AES_CBC_KEY_DATA_WRAP   (CKM_VENDOR_DEFINED | 0x00000001UL)

The CKM_NVIDIA_AES_CBC_KEY_DATA_WRAP mechanism type should be used with a CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS mechanism parameter to wrap either one secret key or a pair of secret keys with custom data interleaved between the two.

This mechanism is intended for the C_WrapKey API. C_WrapKey's third argument is the wrapping key (hWrappingKey) and the fourth argument is the key to be wrapped (hKey).

If hTrailingKey is CK_INVALID_HANDLE, the mechanism wraps a single key (data=[hKey]) using AES in CBC mode.

If hTrailingKey is a valid handle, the mechanism wraps two keys with custom data interleaved between them (data=[hKey|pData|hTrailingKey]) using AES in CBC mode.

The wrapping key (hWrappingKey) can either be a session or a token object. The keys to be wrapped (hKey and hTrailingKey) should not differ in their storage attribute: they should both be session objects, or token objects.

The mechanism uses CBC mode and generates a random IV that is returned to the caller in the iv field of the mechanism parameter.

The convention described in Section 5.2 of the PKCS #11 base documentation can be used with C_WrapKey to compute the length of the wrapped key(s).

Definition at line 1300 of file nvpkcs11.h.

◆ CKM_NVIDIA_AES_GCM_KEY_UNWRAP

#define CKM_NVIDIA_AES_GCM_KEY_UNWRAP   (CKM_VENDOR_DEFINED | 0x00000005UL)

The CKM_NVIDIA_AES_GCM_KEY_UNWRAP mechanism type should be used with the C_UnwrapKey API and the CK_GCM_PARAMS mechanism parameter to unwrap keys.

This mechanism unwraps keys that were previously wrapped along with their metadata using the custom NVIDIA method/script. When calling C_UnwrapKey with this mechanism, no template should be provided since the wrapped blob contains both the key value and the metadata. The pTemplate and ulAttributeCount arguments should be set to NULL and 0 respectively.

Definition at line 1429 of file nvpkcs11.h.

◆ CKM_NVIDIA_MACSEC_AES_KEY_WRAP

#define CKM_NVIDIA_MACSEC_AES_KEY_WRAP   (CKM_VENDOR_DEFINED | 0x00000003UL)

The CKM_NVIDIA_MACSEC_AES_KEY_WRAP mechanism type should be used with a CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS mechanism parameter to wrap or unwrap a secret key.

This mechanism is intended for the C_WrapKey and C_UnwrapKey API.

It is designed to support NVIDIA MACsec hardware and software only.

Definition at line 1361 of file nvpkcs11.h.

◆ CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION

#define CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION   (CKM_VENDOR_DEFINED | 0x00000006UL)

The CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION mechanism type should be used with the C_DeriveKey API and the CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS mechanism parameter to derive keys.

this Mechanism performs both operations:

  1. derives a new key to be returned through the handle supplied by C_DeriveKey.
  2. computes the signature value RSKEY and returns it through a field in the mechanism parameter structure.

Definition at line 1440 of file nvpkcs11.h.

◆ CKM_NVIDIA_PSC_AES_CMAC

#define CKM_NVIDIA_PSC_AES_CMAC   (CKM_VENDOR_DEFINED | 0x00000004UL)

The CKM_NVIDIA_PSC_AES_CMAC mechanism is used to authenticate MACsec-protected traffic metadata-PDUs.

This mechanism is intended for the C_SignInit or C_MessageSignInit or C_VerifyInit or C_MessageVerifyInit APIs, single-part data only.

It is designed to support NVIDIA MACsec hardware and software only.

Definition at line 1416 of file nvpkcs11.h.

◆ CKM_NVIDIA_SHA256_KEY_DERIVATION

#define CKM_NVIDIA_SHA256_KEY_DERIVATION   (CKM_VENDOR_DEFINED | 0x00000009UL)

The CKM_NVIDIA_SHA256_KEY_DERIVATION mechanism type should be used with the C_DeriveKey API and the CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS mechanism parameter to derive keys.

this Mechanism performs both operations:

  1. derives a new key to be returned through the handle supplied by C_DeriveKey.
  2. computes the signature value RSKEY and returns it through a field in the mechanism parameter structure.

Definition at line 1517 of file nvpkcs11.h.

◆ CKM_NVIDIA_SP800_56A_ONE_STEP_KDF

#define CKM_NVIDIA_SP800_56A_ONE_STEP_KDF   (CKM_VENDOR_DEFINED | 0x00000007UL)

The CKM_NVIDIA_SP800_56A_ONE_STEP_KDF mechanism type should be used with a CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS mechanism parameter to derive a secret key from a CKK_AES or CKK_GENERIC_SECRET secret.

The mechanism is intended for the C_DeriveKey API. The mechanism derives keys as described in NISTSP800-56AREV.3. The KDF stage uses one step key derivation as described in NISTSP800-56CREV.1: PRF(counter||key||InfoString). When PRF is CKM_SHA256, the expanded key stream is 32B and C_DeriveKey returns all or part of the key stream depending on the ulKeyOffset parameter and the CKA_VALUE_LEN attribute of the derived key.

CKA_VALUE_LEN = 32, ulKeyOffset = 0 : the entire key stream is used for the 32B derived key. CKA_VALUE_LEN = 16, ulKeyOffset = 0 : the first 16B of the key stream are used for the 16B derived key. CKA_VALUE_LEN = 16, ulKeyOffset = 16 : the trailing 16B of the key stream are used for the 16B derived key.

C_DeriveKey may be called twice to derive two 16B keys: with ulKeyOffset 0 then with ulKeyOffset 16.

Definition at line 1478 of file nvpkcs11.h.

◆ CKM_NVIDIA_SP800_56C_TWO_STEPS_KDF

#define CKM_NVIDIA_SP800_56C_TWO_STEPS_KDF   (CKM_VENDOR_DEFINED | 0x00000002UL)

The CKM_NVIDIA_SP800_56C_TWO_STEPS_KDF mechanism type should be used with a CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS mechanism parameter to derive a secret key from a CKK_AES or CKK_GENERIC_SECRET secret.

The mechanism is intended for the C_DeriveKey API. The mechanism uses two step key derivation as described in NISTSP800-56CREV.1: first extract randomness from the base key and the salt, then expand it in counter mode with an Info string.

If applicable, the L field described in the NISTSP800-56CREV.1 standard should be explicitly supplied as part of the Info string.

Definition at line 1331 of file nvpkcs11.h.

◆ CKM_NVIDIA_TSECRADAR_AES_CMAC

#define CKM_NVIDIA_TSECRADAR_AES_CMAC   (CKM_VENDOR_DEFINED | 0x00000008UL)

The CKM_NVIDIA_TSECRADAR_AES_CMAC mechanism is a drop-in replacement for CKM_AES_CMAC.

The mechanism is supported only on the TSECRADAR safety token and should be used with ephemeral keys of type CKK_AES.

This mechanism is intended for the single-part versions of the C_SignInit/C_MessageSignInit and C_VerifyInit/C_MessageVerifyInit APIs.

Definition at line 1506 of file nvpkcs11.h.

◆ CKR_NVIDIA_CHANNEL_CANNOT_OPEN

#define CKR_NVIDIA_CHANNEL_CANNOT_OPEN   (CKR_VENDOR_DEFINED | 0x000000008UL)

The requested channel could not be opened.

Definition at line 127 of file nvpkcs11.h.

◆ CKR_NVIDIA_CHANNEL_NOT_FOUND

#define CKR_NVIDIA_CHANNEL_NOT_FOUND   (CKR_VENDOR_DEFINED | 0x000000007UL)

Declaration of CKR_NVIDIA vendor extension return values.

The requested channel could not be found

Definition at line 126 of file nvpkcs11.h.

◆ CKR_NVIDIA_CRYPTOKI_UNAVAILABLE

#define CKR_NVIDIA_CRYPTOKI_UNAVAILABLE   (CKR_VENDOR_DEFINED | 0x000000013UL)

Cryptoki is unavailable due to a prior CKR_NVIDIA_FUNCTION_NOT_ALLOWED_IN_SYSTEM_STATE error.

Definition at line 132 of file nvpkcs11.h.

◆ CKR_NVIDIA_ENTRY_PARSED_NOT_PROCESSED

#define CKR_NVIDIA_ENTRY_PARSED_NOT_PROCESSED   (CKR_VENDOR_DEFINED | 0x000000014UL)

If a batch entry is parsed correctly, this value is assigned to the per-entry rv before the batch is submitted for signing/verifying.

Definition at line 133 of file nvpkcs11.h.

◆ CKR_NVIDIA_FUNCTION_NOT_ALLOWED_IN_SYSTEM_STATE

#define CKR_NVIDIA_FUNCTION_NOT_ALLOWED_IN_SYSTEM_STATE   (CKR_VENDOR_DEFINED | 0x000000012UL)

This function call is not permitted in the current NVDVMS state state.

Definition at line 131 of file nvpkcs11.h.

◆ CKR_NVIDIA_OBJECTS_CHANGED

#define CKR_NVIDIA_OBJECTS_CHANGED   (CKR_VENDOR_DEFINED | 0x000000011UL)

The number of stored objects are different from when the search was initialised.

Definition at line 130 of file nvpkcs11.h.

◆ CKR_NVIDIA_SECURE_STORAGE_FAILED

#define CKR_NVIDIA_SECURE_STORAGE_FAILED   (CKR_VENDOR_DEFINED | 0x000000009UL)

This token does not have functional secure storage.

Definition at line 128 of file nvpkcs11.h.

◆ CKR_NVIDIA_SECURE_STORAGE_TAMPERED

#define CKR_NVIDIA_SECURE_STORAGE_TAMPERED   (CKR_VENDOR_DEFINED | 0x000000010UL)

Secure storage may have been tampered, is not available.

Definition at line 129 of file nvpkcs11.h.

Typedef Documentation

◆ CK_C_NVIDIA_BatchDigest

typedef 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 at line 1243 of file nvpkcs11.h.

◆ CK_C_NVIDIA_BatchDigestInit

typedef CK_RV(* CK_C_NVIDIA_BatchDigestInit) (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ULONG ulBatchEntryCount)

pointer to C_NVIDIA_BatchDigestInit

Definition at line 1148 of file nvpkcs11.h.

◆ CK_C_NVIDIA_BatchMessageSignFinal

typedef CK_RV(* CK_C_NVIDIA_BatchMessageSignFinal) (CK_SESSION_HANDLE hSession)

pointer to C_NVIDIA_BatchMessageSignFinal

Definition at line 777 of file nvpkcs11.h.

◆ CK_C_NVIDIA_BatchMessageSignInit

typedef 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 at line 634 of file nvpkcs11.h.

◆ CK_C_NVIDIA_BatchMessageVerifyFinal

typedef CK_RV(* CK_C_NVIDIA_BatchMessageVerifyFinal) (CK_SESSION_HANDLE hSession)

pointer to C_NVIDIA_BatchMessageVerifyFinal

Definition at line 966 of file nvpkcs11.h.

◆ CK_C_NVIDIA_BatchMessageVerifyInit

typedef 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 at line 844 of file nvpkcs11.h.

◆ CK_C_NVIDIA_BatchSignMessage

typedef 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 at line 720 of file nvpkcs11.h.

◆ CK_C_NVIDIA_BatchVerifyMessage

typedef 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 at line 910 of file nvpkcs11.h.

◆ CK_C_NVIDIA_CommitTokenObjects

typedef CK_RV(* CK_C_NVIDIA_CommitTokenObjects) (CK_SESSION_HANDLE hSession, CK_FLAGS flags)

pointer to C_NVIDIA_CommitTokenObjects

Definition at line 300 of file nvpkcs11.h.

◆ CK_C_NVIDIA_EncryptGetIV

typedef CK_RV(* CK_C_NVIDIA_EncryptGetIV) (CK_SESSION_HANDLE hSession, CK_BYTE_PTR pIV, CK_BYTE_PTR pIVLen)

pointer to C_NVIDIA_EncryptGetIV

Definition at line 231 of file nvpkcs11.h.

◆ CK_C_NVIDIA_FinalizeChannel

typedef CK_RV(* CK_C_NVIDIA_FinalizeChannel) (CK_NVIDIA_CHANNEL_HANDLE hChannel)

pointer to CK_C_NVIDIA_FinalizeChannel

Definition at line 523 of file nvpkcs11.h.

◆ CK_C_NVIDIA_GetChannelAttributeValue

typedef CK_RV(* CK_C_NVIDIA_GetChannelAttributeValue) (CK_ULONG ulChannelId, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)

pointer to C_NVIDIA_GetChannelIdAttributeValue

Definition at line 1088 of file nvpkcs11.h.

◆ CK_C_NVIDIA_GetChannelList

typedef CK_RV(* CK_C_NVIDIA_GetChannelList) (CK_ULONG_PTR pChannelIdList, CK_ULONG_PTR pulCount)

pointer to C_NVIDIA_GetChannelIdList

Definition at line 1021 of file nvpkcs11.h.

◆ CK_C_NVIDIA_InitializeChannel

typedef 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 at line 363 of file nvpkcs11.h.

◆ CK_C_NVIDIA_OpenSession

typedef 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 at line 465 of file nvpkcs11.h.

◆ CK_C_NVIDIA_SetKATParameters

typedef CK_RV(* CK_C_NVIDIA_SetKATParameters) (CK_FLAGS flags)

pointer to C_NVIDIA_SetKATParameters

Definition at line 562 of file nvpkcs11.h.

◆ 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_WRAP mechanism.

  • Maturity: GA

◆ CK_NVIDIA_AES_CBC_KEY_DATA_WRAP_PARAMS_PTR

Declaration of CK_AES_CBC_CUSTOM_DATA_WRAP_PARAMS_PTR as a type.

Definition at line 1316 of file nvpkcs11.h.

◆ CK_NVIDIA_BATCH_DIGEST_ENTRY

CK_NVIDIA_BATCH_DIGEST_ENTRY provides the parameters, the input, and the output for a single batch entry in a batch digest process.

  • Maturity: GA

◆ CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR

Declaration of CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR as a type.

Definition at line 1187 of file nvpkcs11.h.

◆ CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY

CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY provides the parameters, the input, and the output for a single batch entry in a batch message-based signature or signature verification process.

  • Maturity: GA

◆ CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR

Declaration of CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR as a type.

Definition at line 659 of file nvpkcs11.h.

◆ CK_NVIDIA_CHANNEL_ATTRIBUTE

CK_NVIDIA_CHANNEL_ATTRIBUTE provides the parameters to use a channel for a set of operations.

  • Maturity: GA

◆ CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR

pointer to a CK_NVIDIA_CHANNEL_ATTRIBUTE structure

Definition at line 382 of file nvpkcs11.h.

◆ CK_NVIDIA_CHANNEL_HANDLE

typedef CK_ULONG CK_NVIDIA_CHANNEL_HANDLE

Declaration of CK_NVIDIA_CHANNEL_HANDLE as a type.

Definition at line 75 of file nvpkcs11.h.

◆ CK_NVIDIA_CHANNEL_HANDLE_PTR

Declaration of CK_NVIDIA_CHANNEL_HANDLE_PTR as a type.

Definition at line 77 of file nvpkcs11.h.

◆ CK_NVIDIA_FLAGS

typedef CK_FLAGS CK_NVIDIA_FLAGS

Declaration of CK_NVIDIA_FLAGS as a type.

Definition at line 80 of file nvpkcs11.h.

◆ CK_NVIDIA_FLAGS_PTR

Declaration of CK_NVIDIA_FLAGS_PTR as a type.

Definition at line 82 of file nvpkcs11.h.

◆ 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_WRAP mechanism.

  • Maturity: GA

◆ CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS_PTR

Declaration of CK_NVIDIA_MACSEC_AES_KEY_WRAP_PARAMS_PTR as a type.

Definition at line 1377 of file nvpkcs11.h.

◆ CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS

CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_OX5B_SHA256_KEY_DERIVATION mechanism.

  • Maturity: GA

◆ CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS_PTR

Declaration of CK_NVIDIA_OX5B_SHA256_KEY_DERIVATION_PARAMS_PTR as a type.

Definition at line 1457 of file nvpkcs11.h.

◆ CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS

CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS provides the parameters to the CKM_NVIDIA_SHA256_KEY_DERIVATION mechanism.

  • Maturity: GA

◆ CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS_PTR

Declaration of CK_NVIDIA_SHA256_KEY_DERIVATION_PARAMS_PTR as a type.

Definition at line 1535 of file nvpkcs11.h.

◆ 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_KDF mechanism.

  • Maturity: GA

◆ CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS_PTR

Declaration of CK_NVIDIA_SP800_56A_ONE_STEP_KDF_PARAMS_PTR as a type.

Definition at line 1495 of file nvpkcs11.h.

◆ 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_STEPS_KDF mechanism.

  • Maturity: GA

◆ CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS_PTR

Declaration of CK_NVIDIA_SP800_56C_TWO_STEPS_KDF_PARAMS_PTR as a type.

Definition at line 1349 of file nvpkcs11.h.

◆ CK_NVIDIA_ZERO_COPY_ENTRY

CK_NVIDIA_ZERO_COPY_ENTRY provides single zero copy data address.

  • Maturity: GA

◆ CK_NVIDIA_ZERO_COPY_ENTRY_PTR

Declaration of CK_NVIDIA_ZERO_COPY_ENTRY_PTR as a type.

Definition at line 1392 of file nvpkcs11.h.

◆ CK_NVIDIA_ZERO_COPY_LIST

CK_NVIDIA_ZERO_COPY_LIST provides multiple zero copy data addresses.

  • Maturity: GA

◆ CK_NVIDIA_ZERO_COPY_LIST_PTR

Declaration of CK_NVIDIA_ZERO_COPY_LIST_PTR as a type.

Definition at line 1406 of file nvpkcs11.h.

◆ NV_CK_FUNCTION_LIST

Declaration of NV_CK_FUNCTION_LIST as a type.

  • Maturity: GA

Definition at line 89 of file nvpkcs11.h.

◆ NV_CK_FUNCTION_LIST_PTR

Declaration of NV_CK_FUNCTION_LIST_PTR as a type.

Definition at line 91 of file nvpkcs11.h.

◆ NV_CK_FUNCTION_LIST_PTR_PTR

Declaration of NV_CK_FUNCTION_LIST_PTR_PTR as a type.

Definition at line 93 of file nvpkcs11.h.

Function Documentation

◆ 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.

If there is no active batch digest process, then this function will fail with CKR_OPERATION_NOT_INITIALIZED. C_NVIDIA_BatchDigestInit must be called to initialize a new batch digest process.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_BUFFER_TOO_SMALL
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_NVIDIA_ENTRY_PARSED_NOT_PROCESSED
  • CKR_OK
  • CKR_OPERATION_ACTIVE
  • CKR_OPERATION_NOT_INITIALIZED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
Parameters
[in]hSession(CK_SESSION_HANDLE)previously obtained from C_OpenSession or C_NVIDIA_OpenSession
[in,out]pBatchEntry(CK_NVIDIA_BATCH_DIGEST_ENTRY_PTR)array of digest entries
[in]ulBatchEntryCount(CK_ULONG)number of entries in the batch array pBatchEntry
Precondition
This function shall be called after C_NVIDIA_BatchDigestInit.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

If there is an active digest process, then this function will fail with CKR_OPERATION_ACTIVE.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_MECHANISM_INVALID
  • CKR_MECHANISM_PARAM_INVALID
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_OK
  • CKR_OPERATION_ACTIVE
  • CKR_PIN_EXPIRED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
  • CKR_USER_NOT_LOGGED_IN
Parameters
[in]hSession(CK_SESSION_HANDLE)previously obtained from C_OpenSession or C_NVIDIA_OpenSession
[in]pMechanism(CK_MECHANISM_PTR)pointer to the digest mechanism
[in]ulBatchEntryCount(CK_ULONG)number of entries in the batch
Precondition
This function shall be called after C_OpenSession or C_NVIDIA_OpenSession.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ C_NVIDIA_BatchMessageSignFinal()

CK_RV C_NVIDIA_BatchMessageSignFinal ( CK_SESSION_HANDLE  hSession)

C_NVIDIA_BatchMessageSignFinal finishes a batch message-based signature process.

If there is no active batch message-based signature process, then this function will fail with CKR_OPERATION_NOT_INITIALIZED. C_NVIDIA_BatchMessageSignInit must be called to initialize a new signature process.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_FUNCTION_REJECTED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_OK
  • CKR_OPERATION_NOT_INITIALIZED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
  • CKR_TOKEN_RESOURCE_EXCEEDED
  • CKR_USER_NOT_LOGGED_IN
Parameters
[in]hSession(CK_SESSION_HANDLE)previously obtained from C_OpenSession or C_NVIDIA_OpenSession
Precondition
This function shall be called after C_NVIDIA_BatchMessageSignInit.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ C_NVIDIA_BatchMessageSignInit()

CK_RV C_NVIDIA_BatchMessageSignInit ( CK_SESSION_HANDLE  hSession,
CK_MECHANISM_PTR  pMechanism,
CK_OBJECT_HANDLE_PTR  phKeys,
CK_ULONG  ulKeysCount 
)

C_NVIDIA_BatchMessageSignInit initializes a batch message-based signature process.

If there is an active batch message-based signature process, then this function will fail with CKR_OPERATION_ACTIVE. C_NVIDIA_BatchMessageSignFinal must be called to finalize the previous process before C_NVIDIA_BatchMessageSignInit is allowed to kickstart a new signature process.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_KEY_FUNCTION_NOT_PERMITTED
  • CKR_KEY_HANDLE_INVALID
  • CKR_KEY_SIZE_RANGE
  • CKR_KEY_TYPE_INCONSISTENT
  • CKR_MECHANISM_INVALID
  • CKR_MECHANISM_PARAM_INVALID
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_OK
  • CKR_OPERATION_ACTIVE
  • CKR_PIN_EXPIRED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
  • CKR_USER_NOT_LOGGED_IN
Parameters
[in]hSession(CK_SESSION_HANDLE)previously obtained from C_OpenSession or C_NVIDIA_OpenSession
[in]pMechanism(CK_MECHANISM_PTR)pointer to the signature mechanism
[in]phKeys(CK_OBJECT_HANDLE_PTR)array of signing keys
[in]ulKeysCount(CK_ULONG)number of keys in the array phKeys
Precondition
This function shall be called after C_OpenSession or C_NVIDIA_OpenSession.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ C_NVIDIA_BatchMessageVerifyFinal()

CK_RV C_NVIDIA_BatchMessageVerifyFinal ( CK_SESSION_HANDLE  hSession)

C_NVIDIA_BatchMessageVerifyFinal finishes a batch message-based signature verification process.

If there is no active batch message-based signature verification process, then this function will fail with CKR_OPERATION_NOT_INITIALIZED. C_NVIDIA_BatchMessageVerifyInit must be called to initialize a new signature verification process.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DATA_LEN_RANGE
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_OK
  • CKR_OPERATION_NOT_INITIALIZED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
  • CKR_TOKEN_RESOURCE_EXCEEDED
Parameters
[in]hSession(CK_SESSION_HANDLE)Previously obtained from C_OpenSession or C_NVIDIA_OpenSession
Precondition
This function shall be called after C_NVIDIA_BatchMessageVerifyInit.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

If there is an active batch message-based signature verification process, then this function will fail with CKR_OPERATION_ACTIVE. C_NVIDIA_BatchMessageVerifyFinal must be called to finalize the previous process before C_NVIDIA_BatchMessageVerifyInit is allowed to kickstart a new signature verification process.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_KEY_FUNCTION_NOT_PERMITTED
  • CKR_KEY_HANDLE_INVALID
  • CKR_KEY_SIZE_RANGE
  • CKR_KEY_TYPE_INCONSISTENT
  • CKR_MECHANISM_INVALID
  • CKR_MECHANISM_PARAM_INVALID
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_OK
  • CKR_OPERATION_ACTIVE
  • CKR_PIN_EXPIRED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
  • CKR_USER_NOT_LOGGED_IN
Parameters
[in]hSession(CK_SESSION_HANDLE)previously obtained from C_OpenSession or C_NVIDIA_OpenSession
[in]pMechanism(CK_MECHANISM_PTR)pointer to the signature verification mechanism
[in]phKeys(CK_OBJECT_HANDLE_PTR)array of signature verification keys
[in]ulKeysCount(CK_ULONG)number of keys in the array phKeys
Precondition
This function shall be called after C_OpenSession or C_NVIDIA_OpenSession.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

If there is no active batch message-based signature process, then this function will fail with CKR_OPERATION_NOT_INITIALIZED. C_NVIDIA_BatchMessageSignInit must be called to initialize a new signature process.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_BUFFER_TOO_SMALL
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DATA_INVALID
  • CKR_DATA_LEN_RANGE
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_FUNCTION_REJECTED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_NVIDIA_ENTRY_PARSED_NOT_PROCESSED
  • CKR_OK
  • CKR_OPERATION_NOT_INITIALIZED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
  • CKR_TOKEN_RESOURCE_EXCEEDED
  • CKR_USER_NOT_LOGGED_IN
Parameters
[in]hSession(CK_SESSION_HANDLE)previously obtained from C_OpenSession or C_NVIDIA_OpenSession
[in,out]pBatchEntry(CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR)array of batch entries to be signed
[in]ulBatchEntryCount(CK_ULONG)number of entries in the batch array
Precondition
This function shall be called after C_NVIDIA_BatchMessageSignInit.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

If there is no active batch message-based signature verification process, then this function will fail with CKR_OPERATION_NOT_INITIALIZED. C_NVIDIA_BatchMessageVerifyInit must be called to initialize a new signature verification process.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DATA_INVALID
  • CKR_DATA_LEN_RANGE
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_DEVICE_REMOVED
  • CKR_FUNCTION_CANCELED
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_HOST_MEMORY
  • CKR_NVIDIA_CRYPTOKI_UNAVAILABLE
  • CKR_NVIDIA_ENTRY_PARSED_NOT_PROCESSED
  • CKR_OK
  • CKR_OPERATION_ACTIVE
  • CKR_OPERATION_NOT_INITIALIZED
  • CKR_SESSION_CLOSED
  • CKR_SESSION_HANDLE_INVALID
  • CKR_SIGNATURE_INVALID
  • CKR_SIGNATURE_LEN_RANGE
  • CKR_TOKEN_RESOURCE_EXCEEDED
Parameters
[in]hSession(CK_SESSION_HANDLE)previously obtained from C_OpenSession or C_NVIDIA_OpenSession
[in,out]pBatchEntry(CK_NVIDIA_BATCH_SIGN_VERIFY_ENTRY_PTR)array of batch entries to be verified
[in]ulBatchEntryCount(CK_ULONG)number of entries in the batch array
Precondition
This function shall be called after C_NVIDIA_BatchMessageVerifyInit.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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 referenced by the provided session handle to secure storage.

This function does not commit objects on other tokens in the system. If there is a session open on any safety token in the system, then this function will fail with CKR_OPERATION_ACTIVE in order to prevent any disruption to ongoing safety operations.

Parameters
[in]hSession(CK_SESSION_HANDLE)Session handle for the specific dynamic token, previously obtained from C_OpenSession or C_NVIDIA_OpenSession
[in]flags(CK_FLAGS)Currently not required, argument is reserved for future expansion
Return values
CKR_ARGUMENTS_BADCKR_ARGUMENTS_BAD
CKR_DEVICE_ERRORCKR_DEVICE_ERROR
CKR_DEVICE_MEMORYCKR_DEVICE_MEMORY
CKR_FUNCTION_FAILEDCKR_FUNCTION_FAILED
CKR_GENERAL_ERRORCKR_GENERAL_ERROR
CKR_NVIDIA_SECURE_STORAGE_FAILEDCKR_NVIDIA_SECURE_STORAGE_FAILED
CKR_NVIDIA_SECURE_STORAGE_TAMPEREDCKR_NVIDIA_SECURE_STORAGE_TAMPERED
CKR_OKCKR_OK
CKR_OPERATION_ACTIVECKR_OPERATION_ACTIVE
CKR_SESSION_CLOSEDCKR_SESSION_CLOSED
CKR_SESSION_HANDLE_INVALIDCKR_SESSION_HANDLE_INVALID
CKR_SESSION_READ_ONLY_EXISTSCKR_SESSION_READ_ONLY_EXISTS
CKR_SESSION_READ_ONLYCKR_SESSION_READ_ONLY
CKR_TOKEN_WRITE_PROTECTEDCKR_TOKEN_WRITE_PROTECTED
CKR_USER_NOT_LOGGED_INCKR_USER_NOT_LOGGED_IN
Precondition
This function shall be called after C_OpenSession or C_NVIDIA_OpenSession for the specific dynamic token to be committed.
Note
This function commits objects only for the single dynamic token associated with the provided session handle. However, it may take several minutes to complete. It may result in some PKCS11 operations being blocked while data is written.

If no changes have been made to the specified token's objects, then this function will return CKR_OK quickly. If changes have been made, this function may take several minutes to complete. To protect safety-critical operations from being blocked, it is recommended to call this function in the deinit phase, as it could have an impact on live operations and boot time. To enforce safe operation, this function will fail with CKR_OPERATION_ACTIVE if any application has any safety token session open on this device (not just the token referenced in this call).


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ C_NVIDIA_EncryptGetIV()

CK_RV C_NVIDIA_EncryptGetIV ( CK_SESSION_HANDLE  hSession,
CK_BYTE_PTR  pIV,
CK_BYTE_PTR  pIVLen 
)

C_NVIDIA_EncryptGetIV gets the IV or CTR buffer data which was generated during the AES encryption for CBC, GCM or CTR mode.

Parameters
[in]hSession(CK_SESSION_HANDLE)The session handle for the encryption session initialized with C_EncryptInit
[in,out]pIV(CK_BYTE_PTR)Buffer for storing the IV or CTR data generated during the encryption session
[in,out]pIVLen(CK_BYTE_PTR)Pointer to the location that holds the length of the IV or CTR
Return values
CKR_ARGUMENTS_BADCKR_ARGUMENTS_BAD
CKR_BUFFER_TOO_SMALLCKR_BUFFER_TOO_SMALL
CKR_CRYPTOKI_NOT_INITIALIZEDCKR_CRYPTOKI_NOT_INITIALIZED
CKR_DATA_INVALIDCKR_DATA_INVALID
CKR_DATA_LEN_RANGECKR_DATA_LEN_RANGE
CKR_DEVICE_ERRORCKR_DEVICE_ERROR
CKR_DEVICE_MEMORYCKR_DEVICE_MEMORY
CKR_FUNCTION_FAILEDCKR_FUNCTION_FAILED
CKR_GENERAL_ERRORCKR_GENERAL_ERROR
CKR_HOST_MEMORYCKR_HOST_MEMORY
CKR_OKCKR_OK
CKR_OPERATION_NOT_INITIALIZEDCKR_OPERATION_NOT_INITIALIZED
CKR_SESSION_CLOSEDCKR_SESSION_CLOSED
CKR_SESSION_HANDLE_INVALIDCKR_SESSION_HANDLE_INVALID
CKR_USER_NOT_LOGGED_INCKR_USER_NOT_LOGGED_IN
CKR_OPERATION_ACTIVECKR_OPERATION_ACTIVE
Precondition
This function shall be called after C_Encrypt or C_EncryptFinal.
Note
This function replaces the use of input IV or CTR in C_EncryptInit. This function is not used with message-based encryption.

This function is called as the last step in the encryption sequence, and requires that first C_EncryptInit and then C_Encrypt or C_EncryptInit and then one or more C_EncryptUpdate(s) followed by C_EncryptFinal have been called first.
A call to C_NVIDIA_EncryptGetIV always terminates the active encryption unless it returns CKR_BUFFER_TOO_SMALL, or is a successful call (returns CKR_OK) to determine the length of the buffer needed to hold the data.
If the function is successful it will return the IV value and the size of the IV value.
C_NVIDIA_EncryptGetIV uses the convention described in Section 5.2 in the PKCS #11 base documentation on producing output.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

Parameters
[in]hChannel(CK_NVIDIA_CHANNEL_HANDLE)channel handle to close
Return values
CKR_ARGUMENTS_BADCKR_ARGUMENTS_BAD
CKR_CRYPTOKI_NOT_INITIALIZEDCKR_CRYPTOKI_NOT_INITIALIZED
CKR_FUNCTION_FAILEDCKR_FUNCTION_FAILED
CKR_GENERAL_ERRORCKR_GENERAL_ERROR
CKR_HOST_MEMORYCKR_HOST_MEMORY
CKR_OKCKR_OK
CKR_OPERATION_ACTIVECKR_OPERATION_ACTIVE
CKR_OPERATION_NOT_INITIALIZEDCKR_OPERATION_NOT_INITIALIZED
CKR_USER_NOT_LOGGED_INCKR_USER_NOT_LOGGED_IN
CKR_NVIDIA_CHANNEL_NOT_FOUNDCKR_NVIDIA_CHANNEL_NOT_FOUND
CKR_NVIDIA_CHANNEL_CANNOT_OPENCKR_NVIDIA_CHANNEL_CANNOT_OPEN


Usage considerations C_NVIDIA_FinalizeChannel can be called to close a channel when is not configured for use in any session. If it is in use, CKR_OPERATION_ACTIVE is returned. This only needs to be called once per handle, not once per C_NVIDIA_InitializeChannel call.

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

For each (type, pValue, ulValueLen) triple in the template, C_NVIDIA_GetChannelIdAttributeValue performs the following algorithm:

  1. If the specified value for the channel ID is invalid (the channel does not possess such an attribute), then the ulValueLen field in that triple is modified to hold the value CK_UNAVAILABLE_INFORMATION.
  2. Otherwise, if the pValue field has the value NULL_PTR, then the ulValueLen field is modified to hold the exact length of the specified attribute for the channel.
  3. Otherwise, if the length specified in ulValueLen is large enough to hold the value of the specified attribute for the channel, then that attribute is copied into the buffer located at pValue, and the ulValueLen field is modified to hold the exact length of the attribute.
  4. Otherwise, the ulValueLen field is modified to hold the value CK_UNAVAILABLE_INFORMATION.

If case 1 applies to any of the requested attributes, then the call should return the value CKR_ATTRIBUTE_TYPE_INVALID. If case 4 applies to any of the requested attributes, then the call should return the value CKR_BUFFER_TOO_SMALL. If more than one of these error codes is applicable, the last detected error code will be returned. Only if none of them applies to any of the requested attributes will CKR_OK be returned.

Note that the error codes CKR_ATTRIBUTE_TYPE_INVALID, and CKR_BUFFER_TOO_SMALL do not denote true errors for C_NVIDIA_GetChannelIdAttributeValue. If a call to C_NVIDIA_GetChannelIdAttributeValue returns any of these 3 values, then the call MUST nonetheless have processed every attribute in the template supplied to C_NVIDIA_GetChannelIdAttributeValue. The C_NVIDIA_GetChannelIdAttributeValue function will return the values for all attributes in the template that it is capable of providing.

Returns
  • CKR_ARGUMENTS_BAD
  • CKR_ATTRIBUTE_TYPE_INVALID
  • CKR_BUFFER_TOO_SMALL
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DATA_LEN_RANGE
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_OK
Parameters
[in]ulChannelId(CK_ULONG)channel ID
[out]pTemplate(CK_ATTRIBUTE_PTR)pointer to template
[in]ulCount(CK_ULONG)the number of attributes in the template
Precondition
Cryptoki must be initialized with C_Initialize or equivalent before calling this function.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

An application can call this function in two distinct ways:

  1. If pChannelIdList is NULL_PTR, the function returns the number of channel IDs in *pulCount without populating a list. In this case, the initial value of *pulCount is ignored, and the function returns CKR_OK upon success. This design conforms to the variable-length buffer output conventions described in section 5.2 in PKCS #11 Cryptographic Token Interface Base Specification.
  2. If pChannelIdList is not NULL_PTR, then *pulCount must indicate the size of the buffer pointed to by pChannelIdList. If the buffer is sufficiently large to store the channel ID list, the list is copied into it, and the function returns CKR_OK. If the buffer is too small, the function returns CKR_BUFFER_TOO_SMALL. In both cases, *pulCount is updated to reflect the total number of channel IDs.
Returns
  • CKR_ARGUMENTS_BAD
  • CKR_BUFFER_TOO_SMALL
  • CKR_CRYPTOKI_NOT_INITIALIZED
  • CKR_DEVICE_ERROR
  • CKR_DEVICE_MEMORY
  • CKR_FUNCTION_FAILED
  • CKR_GENERAL_ERROR
  • CKR_OK
Parameters
[out]pChannelIdList(CK_ULONG_PTR)pointer to channel ID list
[in,out]pulCount(CK_ULONG_PTR)pointer to list count
Precondition
Cryptoki must be initialized with C_Initialize or equivalent before calling this function.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

Parameters
[in]ulChannelId(CK_ULONG)Obtained from the device tree
[out]phChannel(CK_NVIDIA_CHANNEL_HANDLE_PTR)Handle to be used with C_NVIDIA_OpenSession
[out]pFlags(CK_NVIDIA_FLAGS_PTR)Returns the flags that are associated with this channel, which could be none, or combinations of CKF_NVIDIA_ZERO_COPY and CKF_NVIDIA_GCM_DECRYPT_UNAVAILABLE
Return values
CKR_ARGUMENTS_BADCKR_ARGUMENTS_BAD
CKR_CRYPTOKI_NOT_INITIALIZEDCKR_CRYPTOKI_NOT_INITIALIZED
CKR_DEVICE_ERRORCKR_DEVICE_ERROR
CKR_DEVICE_MEMORYCKR_DEVICE_MEMORY
CKR_FUNCTION_FAILEDCKR_FUNCTION_FAILED
CKR_GENERAL_ERRORCKR_GENERAL_ERROR
CKR_HOST_MEMORYCKR_HOST_MEMORY
CKR_OKCKR_OK
CKR_OPERATION_ACTIVECKR_OPERATION_ACTIVE
CKR_OPERATION_NOT_INITIALIZEDCKR_OPERATION_NOT_INITIALIZED
CKR_NVIDIA_CHANNEL_NOT_FOUNDCKR_NVIDIA_CHANNEL_NOT_FOUND
CKR_NVIDIA_CHANNEL_CANNOT_OPENCKR_NVIDIA_CHANNEL_CANNOT_OPEN

This is the first part of an extension to the PKCS#11 standard that allows targetting different hardware engines. The handle can then be used with C_NVIDIA_OpenSession to create a session, or later with C_NVIDIA_FinalizeChannel to close it. If the requested channel has already been opened, the same handle is returned.

C_NVIDIA_InitializeChannel is blocked in the Operational state, as it allocates dynamic memory. If a safety analysis concludes that memory allocation is acceptable in the Operational state, then Operational usage can be enabled by adding the privileges: nvvse/allow_open_operational, nvtzvault/allow_open_operational


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None by default, or to allow calling in the Operational state: nvvse/allow_open_operational, nvtzvault/allow_open_operational
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ 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.

Parameters
[in]slotID(CK_SLOT_ID)Same usage as C_OpenSession
[in]flags(CK_VOID_PTR)Same usage as C_OpenSession
[in]pApplication(CK_VOID_PTR)Same usage as C_OpenSession
[in]Notify(CK_NOTIFY)Same usage as C_OpenSession
[in,out]phSession(CK_SESSION_HANDLE_PTR)Same usage as C_OpenSession
[in]pChannelSettings(CK_NVIDIA_CHANNEL_ATTRIBUTE_PTR)Structure that contains mappings of operations to engines
[in]ulChannelSettingsCount(CK_ULONG)Number of entries in pChannelSettings structure
[in]additionalFlags(CK_NVIDIA_FLAGS)For future expansion, currently must be set to 0
Return values
CKR_ARGUMENTS_BADCKR_ARGUMENTS_BAD
CKR_ATTRIBUTE_VALUE_INVALIDCKR_ATTRIBUTE_VALUE_INVALID
CKR_BUFFER_TOO_SMALLCKR_BUFFER_TOO_SMALL
CKR_CRYPTOKI_NOT_INITIALIZEDCKR_CRYPTOKI_NOT_INITIALIZED
CKR_DATA_INVALIDCKR_DATA_INVALID
CKR_DATA_LEN_RANGECKR_DATA_LEN_RANGE
CKR_DEVICE_ERRORCKR_DEVICE_ERROR
CKR_DEVICE_MEMORYCKR_DEVICE_MEMORY
CKR_DEVICE_REMOVEDCKR_DEVICE_REMOVED
CKR_FUNCTION_FAILEDCKR_FUNCTION_FAILED
CKR_GENERAL_ERRORCKR_GENERAL_ERROR
CKR_HOST_MEMORYCKR_HOST_MEMORY
CKR_OBJECT_HANDLE_INVALIDCKR_OBJECT_HANDLE_INVALID
CKR_OKCKR_OK
CKR_OPERATION_ACTIVECKR_OPERATION_ACTIVE
CKR_OPERATION_NOT_INITIALIZEDCKR_OPERATION_NOT_INITIALIZED
CKR_SESSION_CLOSEDCKR_SESSION_CLOSED
CKR_SESSION_COUNTCKR_SESSION_COUNT
CKR_SESSION_HANDLE_INVALIDCKR_SESSION_HANDLE_INVALID
CKR_SESSION_PARALLEL_NOT_SUPPORTEDCKR_SESSION_PARALLEL_NOT_SUPPORTED
CKR_SESSION_READ_ONLY_EXISTSCKR_SESSION_READ_ONLY_EXISTS
CKR_SESSION_READ_WRITE_SO_EXISTSCKR_SESSION_READ_WRITE_SO_EXISTS
CKR_SLOT_ID_INVALIDCKR_SLOT_ID_INVALID
CKR_TOKEN_NOT_PRESENTCKR_TOKEN_NOT_PRESENT
CKR_TOKEN_NOT_RECOGNIZEDCKR_TOKEN_NOT_RECOGNIZED
CKR_TOKEN_WRITE_PROTECTEDCKR_TOKEN_WRITE_PROTECTED
CKR_USER_NOT_LOGGED_INCKR_USER_NOT_LOGGED_IN

Extends the functionality of the standard C_OpenSession API call to allow channels to be configured in that session. The pChannelSettings structure contains mappings of commands (e.g. CKF_ENCRYPT) to channel handles (as obtained from C_NVIDIA_InitializeChannel). This allows a session to call (e.g.) C_Encrypt and have that function target a different hardware engine queue (e.g. TZ-SE AES0).

Multiple commands can share a channel, provided that the hardware engine type is usable for all operations. Multiple mapping entries are possible, but commands must only be specified once.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ C_NVIDIA_SetKATParameters()

CK_RV C_NVIDIA_SetKATParameters ( CK_FLAGS  flags)

C_NVIDIA_SetKATParameters is used exclusively by the NVIDIA KAT utility.

Parameters
[in]flags(CK_FLAGS)library KAT flags to set
Return values
CKR_ARGUMENTS_BADCKR_ARGUMENTS_BAD
CKR_OKCKR_OK


Usage considerations C_NVIDIA_SetKATParameters is not intended for end users.

  • Allowed context for the API call
    • Thread-safe: Yes
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: Yes
    • Async/Sync: Sync
  • Required Privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA