
Symmetric Key Hardware Accelerator (SKHA)
35-14
Freescale Semiconductor
Attempting to read the SKKDR
n
registers generates an illegal address error. If the key registers are
modified during message processing, a register modify error is generated, setting SKESR[RMDP] and
triggering an interrupt to the interrupt controller (if RMDP is not masked).
35.2.11 SKHA Context Registers (SKCn)
Prior to loading key data, the user must write the appropriate initialization data to the SKHA. Following a
done interrupt, the user must read the contents of the SKC
n
registers prior to switching context. These
values must be restored to resume processing of the original message. The SKC
n
registers are loaded
differently depending on the algorithm and cipher mode. The location and values are summarized in
. Context should be loaded with the lower bytes in the lowest 32-bit context register.
Example 35-1. Context Loading
0x0123456789ABCDEF101112131415161718191A1B1C1D1E1F would be loaded as follows:
SKC1 = 0x000102030405060708090A0B0C0D0E0F
SKC2 = 0x101112131415161718191A1B1C1D1E1F
Table 35-7. SKHA Key Data Register Definitions
Algorithm
SKKDR1
SKKDR2
SKKDR3
SKKDR4
SKKDR5
SKKDR6
AES
Bytes 1–4
Bytes 5–8
Bytes 9–12
Bytes 13–16
—
—
DES
Bytes 1–4
Bytes 5–8
—
—
—
—
2 key
3DES
K1 Bytes 1–4
K1 Bytes 5–8
K2 Bytes 1–4
K2 Bytes 5–8
—
—
3 key
3DES
K1 Bytes 1–4
K1 Bytes 5–8
K2 Bytes 1–4
K2 Bytes 5–8
K3 Bytes 1–4
K3 Bytes 5–8
Address: 0xEC08_4030 (SKKDR1)
0xEC08_4034 (SKKDR2)
0xEC08_4038 (SKKDR3)
0xEC08_403C (SKKDR4)
0xEC08_4040 (SKKDR5)
0xEC08_4044 (SKKDR6)
Access: User write-only
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
R
W
Key n
Reset –
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Figure 35-18. SKHA Key Data Registers (SKKDRn)
Table 35-8. SKHA Context Register Definitions
SKHA Context Register n (32-bits each)
Algorithm
/Mode
1
2
3
4
5
6
7
8
9
10
11
12
DES-ECB
—
—
—
—
—
—
—
—
—
—
—
—
DES-CBC
IV
—
—
—
—
—
—
—
—
—
—
MCF5329 Reference Manual, Rev 3
Содержание MCF5329
Страница 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 126: ...Enhanced Multiply Accumulate Unit EMAC 4 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 564: ...Liquid Crystal Display Controller LCDC 22 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 692: ...Programmable Interrupt Timers PIT0 PIT3 28 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 720: ...Queued Serial Peripheral Interface QSPI 30 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 790: ...Message Digest Hardware Accelerator MDHA 33 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 902: ...Register Memory Map Quick Reference A 26 Freescale Semiconductor MCF5329 Reference Manual Rev 3...