Initialization related functions for nrf_crypto .
More...
|
typedef ret_code_t(* | nrf_crypto_backend_init_fn_t )(void) |
|
typedef ret_code_t(* | nrf_crypto_backend_uninit_fn_t )(void) |
|
Initialization related functions for nrf_crypto .
Cryptography library - nrf_crypto is responsible for global initialization of the nrf_crypto frontend and backends that are enabled in SDK configuration header file.
Function for initializing nrf_crypto and all registered backends.
Must always be called before any other Cryptography library function.
- Return values
-
NRF_SUCCESS | The initialization was successful. |
NRF_ERROR_INTERNAL | An internal error occured in the nrf_crypt backend init. |
bool nrf_crypto_is_initialized |
( |
void |
| ) |
|
Function reporting if nrf_crypto has been initialized.
- Return values
-
True | If cryptographic library is initialized. |
False | If cryptographic library is not initialized. |
bool nrf_crypto_is_initializing |
( |
void |
| ) |
|
Function reporting if nrf_crypto is initialized or is in the process of being initialized.
- Return values
-
True | If cryptographic library is initializing or already initialized. |
False | If cryptographic library is not initialized. |
Function for uninitializing nrf_crypto and all registered backends.
- Return values
-
NRF_SUCCESS | If unititialization was successful. |
NRF_ERROR_INTERNAL | If an internal error occured in the nrf_crypt backend init. |