Loading...
Searching...
No Matches
cryptocell_310_util.h File Reference

Utility functions to setup and terminate the CryptoCell 310 driver. More...

Detailed Description

Utility functions to setup and terminate the CryptoCell 310 driver.

Author
Lena Boeckmann lena..nosp@m.boec.nosp@m.kmann.nosp@m.@haw.nosp@m.-hamb.nosp@m.urg..nosp@m.de

Definition in file cryptocell_310_util.h.

Go to the source code of this file.

void cryptocell_310_enable (void)
 Enable CryptoCell module and IRQs.
 
void cryptocell_310_disable (void)
 Disable CryptoCell module and IRQs.
 
static bool cryptocell_310_data_within_ram (const uint8_t *data)
 Check whether the given data resides in RAM.
 
void driver_cryptocell_310_setup (void)
 Enables CryptoCell module, IRQs and crypto libraries on nrf52840.
 
void driver_cryptocell_310_terminate (void)
 Finishes the use of the CryptoCell library.
 

Function Documentation

◆ cryptocell_310_data_within_ram()

static bool cryptocell_310_data_within_ram ( const uint8_t * data)
inlinestatic

Check whether the given data resides in RAM.

     Should be called on every const input that will be passed
     on to the CryptoCell peripheral.

Definition at line 48 of file cryptocell_310_util.h.

◆ cryptocell_310_disable()

void cryptocell_310_disable ( void )

Disable CryptoCell module and IRQs.

     Should be called after using crypto functions.
     CryptoCell peripheral will be disabled after this call.

◆ cryptocell_310_enable()

void cryptocell_310_enable ( void )

Enable CryptoCell module and IRQs.

     Must be called before using crypto functions.
     CryptoCell peripheral will be enabled after this call.

◆ driver_cryptocell_310_setup()

void driver_cryptocell_310_setup ( void )

Enables CryptoCell module, IRQs and crypto libraries on nrf52840.

     Must be called once before using the CryptoCell lib.

◆ driver_cryptocell_310_terminate()

void driver_cryptocell_310_terminate ( void )

Finishes the use of the CryptoCell library.

     Should be called after using the CryptoCell lib.