Figure 120. Message Construction In Gmac Mode; Figure 121. Gmac Authentication Mode - ST STM32WL5 Series Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Hide thumbs Also See for STM32WL5 Series:
Table of Contents

Advertisement

AES hardware accelerator (AES)
A typical message construction for GMAC is given in
AES GMAC processing
Figure 121
selected by writing 011 to the CHMOD[2:0] bitfield of the AES_CR register.
Legend
The GMAC algorithm corresponds to the GCM algorithm applied on a message only
containing a header. As a consequence, all steps and settings are the same as with the
GCM, except that the payload phase is omitted.
Suspend/resume operations in GMAC
In GMAC mode, the sequence described for the GCM applies except that only the header
phase can be interrupted.
674/1461

Figure 120. Message construction in GMAC mode

16-byte
boundaries
ICB
4-byte boundaries
Initialization vector (IV)
Zero padding
describes the GMAC mode implementation in the AES peripheral. This mode is

Figure 121. GMAC authentication mode

(1) Init
AES_KEYRx (KEY)
(2) Header
AES_DINR
(message block 1)
Swap
management
DATATYPE
[1:0]
GF2mul
H
H
input
output
XOR
Len(A)
Authenticated data
Authentication tag (T)
Counter
(4) Final
[0]
128
Encrypt
AES_KEYRx (KEY)
H
AES_DINR
(message block n)
Swap
management
GF2mul
RM0453 Rev 1
Figure
120.
[Len(A)]
0
AES_IVRx
IV + 32-bit counter (= 0x0)
Encrypt
AES_DINR
len(A)
|| [0]
64
64
GF2mul
H
S
AES_DOUTR
(authentication tag T)
RM0453
[0]
64
64
Last
block
MSv42158V2
MSv42150V2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WL5 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF