nRF5 SDK v13.0.0
Functions
Dynamic memory management module

Module to manage dynamically allocated memory used by nrf_crypto APIs. More...

Functions

uint32_t nrf_crypto_mem_init (void)
 Function to initialize the nrf_crypto memory module. More...
 
uint32_t nrf_crypto_mem_allocate (uint32_t size, nrf_value_length_t *p_result)
 Function to allocate memory for use by the nrf_crypto API. More...
 
uint32_t nrf_crypto_mem_free (nrf_value_length_t *p_mem)
 Function to free memory to use by nrf_crypto API. More...
 

Detailed Description

Module to manage dynamically allocated memory used by nrf_crypto APIs.

Function Documentation

uint32_t nrf_crypto_mem_allocate ( uint32_t  size,
nrf_value_length_t p_result 
)

Function to allocate memory for use by the nrf_crypto API.

Parameters
[in]sizeLength in bytes to allocate
[in,out]p_resultPointer to value length structure to hold information about the allocated memory.
Return values
NRF_SUCCESSThe memory was allocated successfully.
Anyother error code reported by the memory manager.
uint32_t nrf_crypto_mem_free ( nrf_value_length_t p_mem)

Function to free memory to use by nrf_crypto API.

Parameters
[in]p_memPointer to value length structure holding information about allocated memory to free
Return values
NRF_SUCCESSThe memory was freed successfully.
Anyother error code reported by the memory manager.
uint32_t nrf_crypto_mem_init ( void  )

Function to initialize the nrf_crypto memory module.

Return values
NRF_SUCCESSThe nrf_crypto memory manager initialized successfully.
Anyother error code reported by the memory manager.

Documentation feedback | Developer Zone | Subscribe | Updated