AES hardware accelerator (AES)
34.7.3
AES data input register (AES_DINR)
Address offset: 0x08
Reset value: 0x0000 0000
Only 32-bit access type is supported.
31
30
29
28
rw
rw
rw
rw
15
14
13
12
rw
rw
rw
rw
Bits 31:0 DIN[31:0]: Input data word
A four-fold sequential write to this bitfield during the input phase results in writing a complete 128-bit
block of input data to the AES peripheral. From the first to the fourth write, the corresponding data
weights are [127:96], [95:64], [63:32], and [31:0]. Upon each write, the data from the 32-bit input
buffer are handled by the data swap block according to the DATATYPE[1:0] bitfield, then written into
the AES core 128-bit input buffer.
The data signification of the input data block depends on the AES operating mode:
- Mode 1 (encryption): plaintext
- Mode 2 (key derivation): the bitfield is not used (AES_KEYRx registers used for input)
- Mode 3 (decryption) and Mode 4 (key derivation then single decryption): ciphertext
The data swap operation is described in
page
1126.
34.7.4
AES data output register (AES_DOUTR)
Address offset: 0x0C
Reset value: 0x0000 0000
Only 32-bit read access type is supported.
31
30
29
r
r
r
15
14
13
r
r
r
1136/2301
27
26
25
rw
rw
rw
11
10
9
rw
rw
rw
28
27
26
25
r
r
r
r
12
11
10
9
r
r
r
r
24
23
22
21
DIN[31:16]
rw
rw
rw
rw
8
7
6
5
DIN[15:0]
rw
rw
rw
rw
Section 34.4.13: AES data registers and data swapping on
24
23
22
DOUT[31:16]
r
r
r
8
7
6
DOUT[15:0]
r
r
r
RM0432 Rev 6
20
19
18
rw
rw
rw
4
3
2
rw
rw
rw
21
20
19
18
r
r
r
r
5
4
3
2
r
r
r
r
RM0432
17
16
rw
rw
1
0
rw
rw
17
16
r
r
1
0
r
r
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?