AES Word Swap. Holtek HT32F5828

Add to My manuals
637 Pages

advertisement

AES Word Swap. Holtek HT32F5828 | Manualzz

32-Bit Arm ®

HT32F5828

Cortex ® -M0+ MCU

AES Word Swap

The AES supports a word swap function. The swap action is performed between IN FIFO and

AES block data, it is also executed between the AES block data and OUT FIFO. If the word swap function is required, the SWAP bit in the AESCR register should be set high.

31 0

.

.

.

Word 3

Word 2

Word 1

Word 0

31 0

Word 0

Word 1

Word 2

Word 3

.

.

.

AES Block Data

SWAP = 0

127 96

Word 0

95 64

Word 1

63 32

Word 2

31 0

Word 3

Word 2 Word 1 Word 0 SWAP = 1

Figure 224. AES Word Swap Function

Word 3

Register Map

The following table shows the AES registers and reset values.

Table 89. AES Register Map

Register Offset

AESCR 0x000 AES Control Register

Description

AESSR

AESDMAR

AESISR

AESIER

0x004

0x008

0x00C

0x010

AESDINR 0x014

AESDOUTR 0x018

AESKEYR0 0x01C

AESKEYR1 0x020

AESKEYR2 0x024

AESKEYR3 0x028

AESIVR0

AESIVR1

AESIVR2

AESIVR3

0x03C

0x040

0x044

0x048

AES Status Register

AES DMA Register

AES Interrupt Status Register

AES Interrupt Enable Register

AES Data Input Register

AES Data Output Register

AES Key Register 0

AES Key Register 1

AES Key Register 2

AES Key Register 3

AES Initial Vector Register 0

AES Initial Vector Register 1

AES Initial Vector Register 2

AES Initial Vector Register 3

Reset Value

0x0000_0200

0x0000_0003

0x0000_0000

0x0000_0001

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

0x0000_0000

Rev. 1.00 629 of 637 December 28, 2020

advertisement

Related manuals

advertisement

Table of contents