nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_cc3xx_platform_hmac_drbg.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "nrf_cc3xx_platform_defines.h"

Go to the source code of this file.

Data Structures

struct  nrf_cc3xx_platform_hmac_drbg_context_t
 Opaque type for the context required for hmac_drbg generation. More...
 

Macros

#define NRF_CC3XX_PLATFORM_HMAC_CTX_SIZE_WORDS   (78)
 Macro holding size of the opaque hmac_drbg context type.
 

Functions

int nrf_cc3xx_platform_hmac_drbg_init (nrf_cc3xx_platform_hmac_drbg_context_t *const context, const uint8_t *pers_string, size_t pers_string_len)
 Function that initializes an hmac_drbg context.
 
void nrf_cc3xx_platform_hmac_drbg_free (nrf_cc3xx_platform_hmac_drbg_context_t *const context)
 Function that deinitializes a hmac_drbg context.
 
int nrf_cc3xx_platform_hmac_drbg_set_pr (nrf_cc3xx_platform_hmac_drbg_context_t *const context, bool pr_enabled)
 Function to enable prediction resistance.
 
int nrf_cc3xx_platform_hmac_drbg_set_reseed_interval (nrf_cc3xx_platform_hmac_drbg_context_t *const context, int interval)
 Function to change the reseed interval.
 
int nrf_cc3xx_platform_hmac_drbg_reseed (nrf_cc3xx_platform_hmac_drbg_context_t *const context, const uint8_t *additional, size_t add_len)
 Function to do a manual reseed of hmac_drbg (using TRNG)
 
int nrf_cc3xx_platform_hmac_drbg_get_with_add (nrf_cc3xx_platform_hmac_drbg_context_t *const context, uint8_t *buffer, size_t len, size_t *olen, const uint8_t *additional, size_t add_len)
 Function to get PRNG using hmac_drbg and an additional string of data.
 
int nrf_cc3xx_platform_hmac_drbg_get (nrf_cc3xx_platform_hmac_drbg_context_t *const context, uint8_t *buffer, size_t len, size_t *olen)
 Function to get PRNG data using hmac_drbg.