Defined Constants and Types for the STM32F2xx HASH Controller.
More...
Defined Constants and Types for the STM32F2xx HASH Controller.
- Version
- 1.0.0
- Date
- 31 May 2013
LGPL License Terms libopencm3 License
- Author
- © 2013 Mikhail Avkhimenia mikha.nosp@m.il@a.nosp@m.vkhim.nosp@m.enia.nosp@m..net
◆ HASH_CR
◆ HASH_CR_ALGO
#define HASH_CR_ALGO (1 << 7) |
◆ HASH_CR_DATATYPE
#define HASH_CR_DATATYPE (3 << 4) |
◆ HASH_CR_DINNE
#define HASH_CR_DINNE (1 << 12) |
◆ HASH_CR_DMAE
#define HASH_CR_DMAE (1 << 3) |
◆ HASH_CR_INIT
#define HASH_CR_INIT (1 << 2) |
◆ HASH_CR_LKEY
#define HASH_CR_LKEY (1 << 16) |
◆ HASH_CR_MODE
#define HASH_CR_MODE (1 << 6) |
◆ HASH_CR_NBW
#define HASH_CR_NBW (15 << 8) |
◆ HASH_CSR
◆ HASH_DIN
◆ HASH_HR
◆ HASH_IMR
◆ HASH_IMR_DCIE
#define HASH_IMR_DCIE (1 << 1) |
◆ HASH_IMR_DINIE
#define HASH_IMR_DINIE (1 << 0) |
◆ HASH_SR
◆ HASH_SR_BUSY
#define HASH_SR_BUSY (1 << 3) |
◆ HASH_SR_DCIS
#define HASH_SR_DCIS (1 << 1) |
◆ HASH_SR_DINIS
#define HASH_SR_DINIS (1 << 0) |
◆ HASH_SR_DMAS
#define HASH_SR_DMAS (1 << 2) |
◆ HASH_STR
◆ HASH_STR_DCAL
#define HASH_STR_DCAL (1 << 8) |
◆ HASH_STR_NBW
#define HASH_STR_NBW (31 << 0) |
◆ hash_add_data()
void hash_add_data |
( |
uint32_t |
data | ) |
|
HASH Add data.
Puts data into the HASH processor's queue.
- Parameters
-
[in] | data | unsigned int32. Hash input data. |
Definition at line 127 of file hash_common_f24.c.
References HASH_DIN.
◆ hash_digest()
void hash_digest |
( |
void |
| ) |
|
◆ hash_get_result()
void hash_get_result |
( |
uint32_t * |
data | ) |
|
◆ hash_init()
◆ hash_set_algorithm()
void hash_set_algorithm |
( |
uint8_t |
algorithm | ) |
|
HASH Set Algorithm.
Sets up the specified algorithm - either MD5 or SHA1.
- Parameters
-
Definition at line 59 of file hash_common_f24.c.
References HASH_CR.
◆ hash_set_data_type()
void hash_set_data_type |
( |
uint8_t |
datatype | ) |
|
HASH Set Data Type.
Sets up the specified data type: 32Bit, 16Bit, 8Bit, Bitstring.
- Parameters
-
Definition at line 73 of file hash_common_f24.c.
References HASH_CR.
◆ hash_set_key_length()
void hash_set_key_length |
( |
uint8_t |
keylength | ) |
|
HASH Set Key Length.
Sets up the specified key length: Long, Short.
- Parameters
-
Definition at line 87 of file hash_common_f24.c.
References HASH_CR.
◆ hash_set_last_word_valid_bits()
void hash_set_last_word_valid_bits |
( |
uint8_t |
validbits | ) |
|
HASH Set Last Word Valid Bits.
Specifies the number of valid bits in the last word.
- Parameters
-
[in] | validbits | unsigned int8. Number of valid bits. |
Definition at line 101 of file hash_common_f24.c.
References HASH_STR, and HASH_STR_NBW.
◆ hash_set_mode()
void hash_set_mode |
( |
uint8_t |
mode | ) |
|
HASH Set Mode.
Sets up the specified mode - either HASH or HMAC.
- Parameters
-
[in] | mode | unsigned int8. Hash processor mode: HASH Mode |
Definition at line 45 of file hash_common_f24.c.
References HASH_CR.