Initialization

nRF5 SDK v15.0.0

Initialization related functions for nrf_crypto . More...

Data Structures

struct nrf_crypto_backend_info_t

Macros

#define CRYPTO_BACKEND_REGISTER (crypto_var) NRF_SECTION_ITEM_REGISTER (crypto_data, crypto_var)

Typedefs

typedef ret_code_t (* nrf_crypto_backend_init_fn_t )(void)
typedef ret_code_t (* nrf_crypto_backend_uninit_fn_t )(void)

Functions

ret_code_t nrf_crypto_init (void)
Function for initializing nrf_crypto and all registered backends. More...
ret_code_t nrf_crypto_uninit (void)
Function for uninitializing nrf_crypto and all registered backends. More...
bool nrf_crypto_is_initialized (void)
Function reporting if nrf_crypto has been initialized. More...
bool nrf_crypto_is_initializing (void)
Function reporting if nrf_crypto is initialized or is in the process of being initialized. More...

Detailed Description

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 Documentation

ret_code_t nrf_crypto_init ( void )

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.
ret_code_t nrf_crypto_uninit ( void )

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.