nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_cc3xx_platform_derived_key.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  nrf_cc3xx_platform_derivation_info_t
 Structure containing information for doing the key derivation using AES CMAC. More...
 
struct  nrf_cc3xx_platform_auth_info_t
 Authenticated encryption/decryption info. More...
 
struct  nrf_cc3xx_platform_derived_key_ctx_t
 Derived key context. More...
 

Enumerations

enum  nrf_cc3xx_platform_cipher_info_t { ALG_AES_128_BIT = 1 , ALG_AES_256_BIT = 2 , ALG_CHACHA20_256_BIT = 3 , ALG_CHACHAPOLY_256_BIT = 3 }
 Enum with the encryption/decryption algorithms supported with derived keys. More...
 

Functions

int nrf_cc3xx_platform_derived_key_init (nrf_cc3xx_platform_derived_key_ctx_t *ctx)
 Function to initialize the derived key context.
 
int nrf_cc3xx_platform_derived_key_set_info (nrf_cc3xx_platform_derived_key_ctx_t *ctx, uint32_t slot_id, unsigned int key_size, uint8_t const *label, size_t label_size)
 Function to set the key derivation information.
 
int nrf_cc3xx_platform_derived_key_set_cipher (nrf_cc3xx_platform_derived_key_ctx_t *ctx, nrf_cc3xx_platform_cipher_info_t cipher_info)
 Function to set the derived cipher.
 
int nrf_cc3xx_platform_derived_key_set_auth_info (nrf_cc3xx_platform_derived_key_ctx_t *ctx, const uint8_t *nonce, size_t nonce_size, const uint8_t *aad, size_t aad_size, uint8_t *tag, size_t tag_size)
 Function to set the authenticated encryption information.
 
int nrf_cc3xx_platform_derived_key_encrypt (nrf_cc3xx_platform_derived_key_ctx_t *ctx, uint8_t *output, size_t input_size, uint8_t const *input)
 Function to encrypt data using a derived key.
 
int nrf_cc3xx_platform_derived_key_decrypt (nrf_cc3xx_platform_derived_key_ctx_t *ctx, uint8_t *output, size_t input_size, uint8_t const *input)
 Function to decrypt data using a derived key.