GD32W51x User Manual
949
27.9.9.
Key registers (CAU_KEY0..3(H/L))
Address offset: 0x20 to 0x3C
Reset value: 0x0000 0000
This registers have to be accessed by word (32-bit), and all of them must be written when
BUSY is 0.
In DES mode, only CAU_KEY1 is used.
In TDES mode, CAU_KEY1, CAU_KEY2 and CAU_KEY3 are used.
In AES-128 mode, KEY2H[31:0] || KEY2L[31:0] is used as AE S_KEY[0:63], and
KEY3H[31:0] || KEY3L[31:0] is used as AES_KEY[64:127].
In AES-192 mode, KEY1H[31:0] || KEY1L[31:0] is used as AES_KEY[0:63], KEY2H[31:0] ||
KEY2L[31:0] is used as AES_KEY[64:127], and KEY3H[31:0] || KEY3L[31:0] is used as
AES_KEY[128:191].
In AES-256 mode, KEY0H[31:0] || KEY0L[31:0] is used as AES_KEY[0:63], KEY1H[31:0] ||
KEY1L[31:0] is used as AES_KEY[64:127], KEY2H[31:0] || KEY2L[31:0] is used as
AES_KEY[128:191], and KEY3H[31:0] || KEY3L[31:0] is used as AES_KEY[192:255].
NOTE:
“||” is a concatenation operator. For example, X || Y denotes the concatenation of two
bit strings X and Y.
CAU_KEY0H
Address offset: 0x20
Reset value: 0x0000 0000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
KEY0H[31:16]
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
KEY0H[15:0]
w
CAU_KEY0L
Address offset: 0x24
Reset value: 0x0000 0000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
KEY0L[31:16]
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
KEY0L[15:0]
w