FreeRTOS: PKCS11
PKCS11 Cryptoki Library
Return to main page ↑
PKCS11_PAL_GetObjectValue

Gets the value of an object in storage, by handle.

CK_RV PKCS11_PAL_GetObjectValue( CK_OBJECT_HANDLE xHandle,
CK_BYTE_PTR * ppucData,
CK_ULONG_PTR pulDataSize,
CK_BBOOL * pIsPrivate );

Port-specific file access for cryptographic information.

This call dynamically allocates the buffer which object value data is copied into. PKCS11_PAL_GetObjectValueCleanup() should be called after each use to free the dynamically allocated buffer.

See also
PKCS11_PAL_GetObjectValueCleanup
Parameters
[in]xHandleThe PKCS #11 object handle of the object to get the value of.
[out]ppucDataPointer to buffer for file data.
[out]pulDataSizeSize (in bytes) of data located in file.
[out]pIsPrivateBoolean indicating if value is private (CK_TRUE) or exportable (CK_FALSE)
Returns
CKR_OK if operation was successful. CKR_KEY_HANDLE_INVALID if no such object handle was found, CKR_DEVICE_MEMORY if memory for buffer could not be allocated, CKR_FUNCTION_FAILED for device driver error.
PKCS11_PAL_GetObjectValue
CK_RV PKCS11_PAL_GetObjectValue(CK_OBJECT_HANDLE xHandle, CK_BYTE_PTR *ppucData, CK_ULONG_PTR pulDataSize, CK_BBOOL *pIsPrivate)
Gets the value of an object in storage, by handle.