Cryptographic key. More...
#include <nrf_crypto.h>
Data Fields | |
uint8_t * | p_le_data |
uint32_t | len |
Cryptographic key.
This structure is a generic container for a cryptographic key, shared secret, hash, or signature. The data is contained in raw bytes in little-endian format. If more than one array is present in the data (for example, multiple point coordinates), those must be placed consecutively in memory.
For ECC, the key length depends on the length of the ECC curve:
Key type | Key length |
---|---|
Public key | 2 * curve length |
Private key | 1 * curve length |
Shared secret | 2 * curve length |
Signature | 2 * curve length |
uint32_t nrf_crypto_key_t::len |
Length of the key data in bytes.
uint8_t* nrf_crypto_key_t::p_le_data |
Pointer to the key data in little-endian format.