nRF5 SDK v12.1.0
Data Fields
nrf_crypto_key_t Struct Reference

Cryptographic key. More...

#include <nrf_crypto.h>

Data Fields

uint8_t * p_le_data
 
uint32_t len
 

Detailed Description

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

Field Documentation

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.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated