CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
pkcs11_attrib.h File Reference

PKCS11 Library Object Attribute Handling. More...

#include "cryptoauthlib.h"
#include "cryptoki.h"
#include "pkcs11_session.h"

Data Structures

struct  pkcs11_attrib_model_s
 

Typedefs

typedef CK_RV(* attrib_f) (CK_VOID_PTR pObject, CK_ATTRIBUTE_PTR pAttribute, pkcs11_session_ctx_ptr pSession)
 
typedef struct pkcs11_attrib_model_s pkcs11_attrib_model
 
typedef struct pkcs11_attrib_model_spkcs11_attrib_model_ptr
 

Functions

CK_RV pkcs11_attrib_fill (CK_ATTRIBUTE_PTR pAttribute, const void *pData, const CK_ULONG ulSize)
 Perform the nessasary checks and copy data into an attribute structure.
 
CK_RV pkcs11_attrib_value (CK_ATTRIBUTE_PTR pAttribute, const CK_ULONG ulValue, const CK_ULONG ulSize)
 Helper function to write a numerical value to an attribute buffer.
 
CK_RV pkcs11_attrib_false (CK_VOID_PTR pObject, CK_ATTRIBUTE_PTR pAttribute, pkcs11_session_ctx_ptr pSession)
 
CK_RV pkcs11_attrib_true (CK_VOID_PTR pObject, CK_ATTRIBUTE_PTR pAttribute, pkcs11_session_ctx_ptr pSession)
 
CK_RV pkcs11_attrib_empty (CK_VOID_PTR pObject, CK_ATTRIBUTE_PTR pAttribute, pkcs11_session_ctx_ptr pSession)
 

Detailed Description

PKCS11 Library Object Attribute Handling.

Typedef Documentation

◆ attrib_f

typedef CK_RV(* attrib_f) (CK_VOID_PTR pObject, CK_ATTRIBUTE_PTR pAttribute, pkcs11_session_ctx_ptr pSession)

Populate an attribute based on the "object"