PKCS11 Library Key Object Handling. More...
#include "cryptoauthlib.h"
#include "crypto/atca_crypto_sw_sha1.h"
#include "pkcs11_config.h"
#include "pkcs11_debug.h"
#include "pkcs11_token.h"
#include "pkcs11_attrib.h"
#include "pkcs11_key.h"
#include "pkcs11_session.h"
#include "pkcs11_slot.h"
#include "pkcs11_util.h"
#include "pkcs11_os.h"
Functions | |
const pkcs11_key_info_t * | pkcs11_get_object_key_type (ATCADevice device_ctx, pkcs11_object_ptr obj_ptr) |
CK_RV | pkcs11_ta_get_pubkey (CK_VOID_PTR pObject, cal_buffer *key_buffer, pkcs11_session_ctx_ptr session_ctx) |
CK_RV | pkcs11_key_write (CK_VOID_PTR pSession, CK_VOID_PTR pObject, CK_ATTRIBUTE_PTR pAttribute) |
CK_RV | pkcs11_key_generate (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) |
CK_RV | pkcs11_key_generate_pair (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pPublicKeyTemplate, CK_ULONG ulPublicKeyAttributeCount, CK_ATTRIBUTE_PTR pPrivateKeyTemplate, CK_ULONG ulPrivateKeyAttributeCount, CK_OBJECT_HANDLE_PTR phPublicKey, CK_OBJECT_HANDLE_PTR phPrivateKey) |
CK_RV | pkcs11_key_derive (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) |
CK_RV | pkcs11_key_clear_session_cache (pkcs11_session_ctx_ptr session_ctx) |
CK_RV | pkcs11_key_clear_object_cache (pkcs11_object_ptr pObject) |
Variables | |
CK_BYTE | pkcs11_ec_pbkey_asn1_hdr_p256 [] |
CK_BYTE | pkcs11_x962_asn1_hdr_ec256 [] |
CK_BYTE | pkcs11_key_ec_params_p256 [] = { 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07 } |
CK_BYTE | pkcs11_ec_pbkey_asn1_hdr_p224 [] |
CK_BYTE | pkcs11_x962_asn1_hdr_ec224 [] |
CK_BYTE | pkcs11_key_ec_params_p224 [] = { 0x06, 0x05, 0x2B, 0x81, 0x04, 0x00, 0x21 } |
CK_BYTE | pkcs11_ec_pbkey_asn1_hdr_p384 [] |
CK_BYTE | pkcs11_key_ec_params_p384 [] = { 0x06, 0x05, 0x2B, 0x81, 0x04, 0x00, 0x22 } |
CK_BYTE | pkcs11_x962_asn1_hdr_ec384 [] |
CK_BYTE | pkcs11_ec_pbkey_asn1_hdr_p521 [] |
CK_BYTE | pkcs11_x962_asn1_hdr_ec521 [] |
CK_BYTE | pkcs11_key_ec_params_p521 [] = { 0x06, 0x05, 0x2B, 0x81, 0x04, 0x00, 0x23 } |
const pkcs11_ecc_key_info_t | ec_key_data_table [4] |
const pkcs11_rsa_key_info_t | rsa_key_data_table [4] |
const pkcs11_key_info_t | key_data_table [] |
const pkcs11_attrib_model | pkcs11_key_public_attributes [] |
const CK_ULONG | pkcs11_key_public_attributes_count = (CK_ULONG)(sizeof( pkcs11_key_public_attributes ) / sizeof( pkcs11_key_public_attributes [0])) |
const pkcs11_attrib_model | pkcs11_key_private_attributes [] |
const CK_ULONG | pkcs11_key_private_attributes_count = (CK_ULONG)(sizeof( pkcs11_key_private_attributes ) / sizeof( pkcs11_key_private_attributes [0])) |
const pkcs11_attrib_model | pkcs11_key_secret_attributes [] |
const CK_ULONG | pkcs11_key_secret_attributes_count = (CK_ULONG)(sizeof( pkcs11_key_secret_attributes ) / sizeof( pkcs11_key_secret_attributes [0])) |
PKCS11 Library Key Object Handling.