|
libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
API for the CRYP controller. More...

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... | |
API for the CRYP controller.
| enum crypto_mode_mac |
| Enumerator | |
|---|---|
| ENCRYPT_GCM | |
| ENCRYPT_CCM | |
| DECRYPT_GCM | |
| DECRYPT_CCM | |
Definition at line 80 of file f4/crypto.h.
| void crypto_context_swap | ( | uint32_t * | buf | ) |
Swap context.
| [in] | buf | uint32_t Memory space for swap (16 items length) |
Definition at line 49 of file crypto.c.
References CRYP_CSGCMCCMR, and CRYP_CSGCMR.
| 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().
