![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 652](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630652.webp)
www.geehy.com Page 651
Field
Name
R/W
Description
010
:
DES-ECB
011
:
DES-CBC
100
:
AES-ECB
101
:
AES-CBC
110
:
AES-CTR
111: Decide AES key according to decryption mode
7:6
DTSEL
R/W
Data Type Select
00: 32-bit data
01: 16-bit data or half word
10: 8-bit data or byte
11: Bit data or bit string
9:8
KSIZESEL
R/W
Key Size Select
00: 128-bit key length
01: 192-bit key length
10:256-bit key length
11: Reserved
13:10
Reserved
14
FFLUSH
R/W
FIFO Flush
When CRYPEN bit is 0, write 1 to this bit to refresh IN and OUT FIFO;
writing 0 is invalid.
When CRYPEN bit is 1, writing 0 or 1 to this bit is invalid.
15
CRYPEN
R/W
Cryptographic Processor Enable
0: Disable
1: Enable
31:16
Reserved
CRYP state register (CRYP_STS)
Offset address: 0x04
Reset value: 0x00 0003
Field
Name
R/W
Description
0
IFEMPT
R
Input FIFO Empty
0: Not empty
1: Empty
1
IFFULL
R
Input FIFO not Full
0: Full
1: Not full
2
OFEMPT
R
Output FIFO not Empty
0: Empty
1: Not empty
3
OFFULL
R
Output FIFO Full
0: Not full
1: Full
4
BUSY
R
Busy Bit
0: The CRYP core currently does not process data
1: The CRYP core is currently processing a data block or preparing a key