![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 300](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630300.webp)
www.geehy.com Page 299
Field
Name
R/W
Description
1: Data at least including one word
15:13
Reserved
16
LKEYSEL
R/W
Key Select
In HMAC mode:
0: Short key (≤64 bytes)
1: Long key (>64 bytes)
This bit is valid only when INITCAL bit and MODESEL bit are set to
1 at the same time. This bit cannot be set during calculation.
31:17
Reserved
HASH input data register (HASH_INDATA)
Offset address: 0x04
Reset value: 0x0000 0000
Field
Name
R/W
Description
31:0
INDATA
R/W
Input Data
Read: Current content returned to the register
Write: The current contents of the register are pushed in the input
FIFO, and the register obtains the new value on AHB bus
HASH start register (HASH_START)
Offset address: 0x08
Reset value: 0x0000 0000
Field
Name
R/W
Description
4:0
LWNUM
R/W
The Significant Number of the Last Word Written to the HASH
Processor's Bitstring Structure
When DIGCAL=0, write to this bit and the value on AHB bus can be
obtained:
0x00: All 32 bits are valid
0x01: Bit [31] is valid
0x02: Bit [31:30] is valid
0x03: Bit [31:29] is valid
...
0x1F: Bit [0] is valid
When DIGCAL=1, write this bit and this bit field will be unchanged.
Read these bits and the last value written to this bit will be returned.
7:5
Reserved
8
DIGCAL
W
Digest Calculation
When DIGCAL=1, the message will be filled with the value in LWNUM,
and since the INITCAL bit =1, all data words written to the input FIFO
will begin to calculate the digest.
Read this bit and 0 will be returned.
31:9
Reserved
HASH digest register x (HASH_DIGx)
Offset address: 0x0C+ (x*0x04), x=0…4