libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
API (for F42xx or F43xx only)

API for the CRYP controller. More...

Collaboration diagram for API (for F42xx or F43xx only):

Enumerations

enum  crypto_mode_mac { ENCRYPT_GCM = CRYP_CR_ALGOMODE_TDES_ECB | CRYP_CR_ALGOMODE3 , ENCRYPT_CCM = CRYP_CR_ALGOMODE_TDES_CBC | CRYP_CR_ALGOMODE3 , DECRYPT_GCM , DECRYPT_CCM }
 

Functions

void crypto_context_swap (uint32_t *buf)
 Swap context. More...
 
void crypto_set_mac_algorithm (enum crypto_mode_mac mode)
 Set the MAC algorithm. More...
 

Detailed Description

API for the CRYP controller.

Warning
Only for F42xx and 43xx

Enumeration Type Documentation

◆ crypto_mode_mac

Enumerator
ENCRYPT_GCM 
ENCRYPT_CCM 
DECRYPT_GCM 
DECRYPT_CCM 

Definition at line 80 of file f4/crypto.h.

Function Documentation

◆ crypto_context_swap()

void crypto_context_swap ( uint32_t *  buf)

Swap context.

Parameters
[in]bufuint32_t Memory space for swap (16 items length)

Definition at line 49 of file crypto.c.

References CRYP_CSGCMCCMR, and CRYP_CSGCMR.

◆ crypto_set_mac_algorithm()

void crypto_set_mac_algorithm ( enum crypto_mode_mac  mode)

Set the MAC algorithm.

Definition at line 39 of file crypto.c.

References crypto_set_algorithm().

Here is the call graph for this function: