![GigaDevice Semiconductor GD32F20 Series User Manual Download Page 224](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801224.webp)
GD32F20x User Manual
224
7
ALGM[0]
Algorithm selection bit 0
This bit and bit 18 of CTL are written by software to select the SHA-1, SHA-224,
SHA256 or the MD5 algorithm:
00: Select SHA-1 algorithm
01: Select MD5 algorithm
10: Select SHA224 algorithm
11: Select SHA256 algorithm
6
HMS
HAU mode selection, must be changed when no computation is processing
0: HASH mode selected
1: HMAC mode selected. If the key length is longer than 64 bytes, then KLM bit
must also be set
5:4
DATAM[1:0]
Data type mode
Defines the format of the data entered into the HAU_DI register:
00: no swapping. The data written to HAU_DI is direct write to FIFO without
swapping.
01: half-word swapping. The data written into HAU_DI need half-word swapping
before write to FIFO.
10: bytes swapping. The data written into HAU_DI need bytes swapping before write
to FIFO.
11: bit swapping. The data written into HAU_DI need bytes swapping before write
to FIFO.
3
DMAE
DMA enable
0: DMA disabled
1: DMA enabled
Note 1. this bit is cleared when transferring the last data of the message, but not
cleared because of START
2. When DMA is transferring, writing 0 to this bit will not stop the current
transfer until the transfer is completed or START is set as 1
2
START
Start the digest calculation
1: Start the digest of a new message
0: No effect
Note: reading this bit always returns 0
1:0
Reserved
Must keep the reset value
11.6.2.
HAU data input register (HAU_DI)
Address offset: 0x04
Reset value: 0x0000 0000
The data input register is used to transfer message with 512-bit blocks into the input FIFO for
processing. Any new write operation to this register will be extended while the digest
calculation is in process until it has been finished.
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...