RM0440
Bits 31:0 KEY[31:0]: Cryptographic key, bits [31:0]
This bitfield contains the bits [31:0] of the AES encryption or decryption key, depending on the
operating mode:
- In Mode 1 (encryption), Mode 2 (key derivation) and Mode 4 (key derivation then single
decryption): the value to write into the bitfield is the encryption key.
- In Mode 3 (decryption): the value to write into the bitfield is the encryption key to be derived before
being used for decryption. After writing the encryption key into the bitfield, its reading before
enabling AES returns the same value. Its reading after enabling AES and after the CCF flag is set
returns the decryption key derived from the encryption key.
Note: In mode 4 (key derivation then single decryption) the bitfield always contains the encryption
key.
The AES_KEYRx registers may be written only when the AES peripheral is disabled.
Refer to
Section 33.4.14: AES key registers on page 1479
33.7.6
AES key register 1 (AES_KEYR1)
Address offset: 0x14
Reset value: 0x0000 0000
31
30
29
rw
rw
rw
15
14
13
rw
rw
rw
Bits 31:0 KEY[63:32]: Cryptographic key, bits [63:32]
Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield.
33.7.7
AES key register 2 (AES_KEYR2)
Address offset: 0x18
Reset value: 0x0000 0000
31
30
29
rw
rw
rw
15
14
13
rw
rw
rw
Bits 31:0 KEY[95:64]: Cryptographic key, bits [95:64]
Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield.
33.7.8
AES key register 3 (AES_KEYR3)
Address offset: 0x1C
Reset value: 0x0000 0000
28
27
26
25
rw
rw
rw
rw
12
11
10
9
rw
rw
rw
rw
28
27
26
25
rw
rw
rw
rw
12
11
10
9
rw
rw
rw
rw
for more details.
24
23
22
KEY[63:48]
rw
rw
rw
8
7
6
KEY[47:32]
rw
rw
rw
24
23
22
KEY[95:80]
rw
rw
rw
8
7
6
KEY[79:64]
rw
rw
rw
RM0440 Rev 1
AES hardware accelerator (AES)
21
20
19
18
rw
rw
rw
rw
5
4
3
2
rw
rw
rw
rw
21
20
19
18
rw
rw
rw
rw
5
4
3
2
rw
rw
rw
rw
17
16
rw
rw
1
0
rw
rw
17
16
rw
rw
1
0
rw
rw
1491/2083
1497
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?