
Symmetric Key Hardware Accelerator (SKHA)
35-12
Freescale Semiconductor
35.2.6
SKHA Key Size Register (SKKSR)
The 6-bit SKKSR is used to set the number of bytes in the key. For AES, this value is always 16 (0x10).
For single DES, the key size must be 8 bytes (0x08). For two key Triple-DES the value should be 16
(0x10), while three key Triple-DES requires a key size of 24 bytes (0x18). The SKKSR must be set after
the key data is written. After the key size is set, the contents of the key register are used to initialize the
SKHA. If an illegal key size is specified, a key size error occurs, setting SKESR[KSE] and triggering an
interrupt to the interrupt controller if KSE is not masked. If the key size is modified during message
processing, a register modified error is generated, setting SKESR[RMDP] and triggering an interrupt to
the interrupt controller if RMDP is not masked.
35.2.7
SKHA Data Size Register (SKDSR)
The 32-bit SKDSR holds the number of bytes to process. This value is set prior to loading message data.
The SKHA internally decrements this value as it processes the message. The SKDSR may be read at any
time to determine the number of bytes that remain to be processed. This value may be modified during
message processing. The value written is internally added to the current value of data size. The SKHA
continues to process data until the value in SKDSR reaches zero.
2
NEIF
Non-empty input FIFO upon done.
0 No error
1 Input FIFO contained data when processing was complete
1
OFU
Output FIFO underflow
0 No error
1 Output FIFO was read while empty
0
IFO
Input FIFO overflow.
0 No error
1 Input FIFO has been written to while full
Address: 0xEC08_4018
Access: User read/write
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 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Key Size in bytes
W
Reset 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 35-14. SKHA Key Size Register (SKKSR)
Address: 0xEC08_401C
Access: User read/write
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
Number of bytes to process
W
Reset 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 35-15. SKHA Key Size Register (SKKSR)
Table 35-6. SKESR & SKESMR Field Descriptions (continued)
Field
Description
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...