libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
crypto_common_f24.c File Reference
Include dependency graph for crypto_common_f24.c:

Go to the source code of this file.

Macros

#define CRYP_CR_ALGOMODE_MASK   ((1 << 19) | CRYP_CR_ALGOMODE)
 

Functions

void crypto_wait_busy (void)
 Wait, if the Controller is busy. More...
 
void crypto_set_key (enum crypto_keysize keysize, uint64_t key[])
 Set key value to the controller. More...
 
void crypto_set_iv (uint64_t iv[])
 Set Initialization Vector. More...
 
void crypto_set_datatype (enum crypto_datatype datatype)
 Set the order of the data to be crypted. More...
 
void crypto_set_algorithm (enum crypto_mode mode)
 Set the algorithm for Encryption/decryption. More...
 
void crypto_start (void)
 Enable the cryptographic controller and start processing. More...
 
void crypto_stop (void)
 Disable the cryptographic controller and stop processing. More...
 
uint32_t crypto_process_block (uint32_t *inp, uint32_t *outp, uint32_t length)
 Start of encryption or decryption on data buffers. More...