|
t_cose
|
#include <t_cose_common.h>
Data Fields | ||
| enum t_cose_crypto_lib_t | crypto_lib | |
| union { | ||
| void * key_ptr | ||
| uint64_t key_handle | ||
| } | k | |
This structure is used to indicate or pass a key through the t_cose implementation to the underlying, platform-specific cryptography libraries for signing and verifying signature. You must know the cryptographic library that is integrated with t_cose to know how to fill in this data structure.
For example, in the OpenSSL integration, key_ptr should point to an OpenSSL EVP_KEY type.
| enum t_cose_crypto_lib_t t_cose_key::crypto_lib |
Identifies the crypto library this key was created for. The crypto library knows if it uses the handle or the pointer so this indirectly selects the union member.
| uint64_t t_cose_key::key_handle |
For libraries that use an integer handle to the key
| void* t_cose_key::key_ptr |
For libraries that use a pointer to the key or key handle. NULL indicates empty.