libopencm3 STM32 Cryptographic controller
More...
libopencm3 STM32 Cryptographic controller
- Version
- 1.0.0
- Date
- 17 Jun 2013
This library supports the cryptographic coprocessor system for the STM32 series of ARM Cortex Microcontrollers
LGPL License Terms libopencm3 License
◆ CRYP_CR_ALGOMODE_MASK
◆ crypto_process_block()
uint32_t crypto_process_block |
( |
uint32_t * |
inp, |
|
|
uint32_t * |
outp, |
|
|
uint32_t |
length |
|
) |
| |
Start of encryption or decryption on data buffers.
This blocking method transfers input buffer of specified length to the cryptographic coprocessor, and instructs him to begin of ciphering or deciphering. It waits for data to be ready, and then fills the processed data to output buffer.
- Parameters
-
[in] | inp | uint32_t* Input array to crypt/decrypt. |
[in] | outp | uint32_t* Output array with crypted/encrypted data. |
[in] | length | uint32_t Length of the arrays |
- Returns
- uint32_t Number of written words
Definition at line 152 of file crypto_common_f24.c.
References CRYP_DIN, CRYP_DOUT, CRYP_SR, CRYP_SR_IFNF, CRYP_SR_OFNE, and crypto_wait_busy().
◆ crypto_set_algorithm()
◆ crypto_set_datatype()
◆ crypto_set_iv()
void crypto_set_iv |
( |
uint64_t |
iv[] | ) |
|
Set Initialization Vector.
- Parameters
-
[in] | iv | uint64_t[] Initialization vector (array of 4 items) |
- Note
- Cryptographic controller must be in disabled state
Definition at line 73 of file crypto_common_f24.c.
References CRYP_IVR, and crypto_wait_busy().
◆ crypto_set_key()
◆ crypto_start()
void crypto_start |
( |
void |
| ) |
|
◆ crypto_stop()
void crypto_stop |
( |
void |
| ) |
|
◆ crypto_wait_busy()
void crypto_wait_busy |
( |
void |
| ) |
|