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] size Length in bytes to allocate [in,out] p_result Pointer to value length structure to hold information about the allocated memory.
- Return values
-
NRF_SUCCESS The memory was allocated successfully. Any other 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_mem Pointer to value length structure holding information about allocated memory to free
- Return values
-
NRF_SUCCESS The memory was freed successfully. Any other 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_SUCCESS The nrf_crypto memory manager initialized successfully. Any other error code reported by the memory manager.