nRF5 SDK v16.0.0
Data Structures | Macros | Typedefs | Functions
Initialization

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_SUCCESSThe initialization was successful.
NRF_ERROR_INTERNALAn 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
TrueIf cryptographic library is initialized.
FalseIf 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
TrueIf cryptographic library is initializing or already initialized.
FalseIf cryptographic library is not initialized.
ret_code_t nrf_crypto_uninit ( void  )

Function for uninitializing nrf_crypto and all registered backends.

Return values
NRF_SUCCESSIf unititialization was successful.
NRF_ERROR_INTERNALIf an internal error occured in the nrf_crypt backend init.

Documentation feedback | Developer Zone | Subscribe | Updated