
Symmetric Key Hardware Accelerator (SKHA)
Freescale Semiconductor
35-19
35.4
Initialization/Application Information
35.4.1
General Operation
The intended general operation of the SKHA is as follows for ECB, CBC and CTR modes:
1. Reset/initialize.
2. Set algorithm, processing direction, and cipher mode in the SKMR.
3. Write to SKCR to enable interrupts.
4. Write initialization vector/counter to the SKC
n
registers, if necessary.
5. Write symmetric key to SKKDR
n
registers.
6. Set number of bytes in key in the SKKSR.
7. Set the number of bits in the message in the SKDSR.
8. Load the input FIFO with message data.
9. Set the SKCMR[GO] bit.
10. Wait for interrupt, SKSR[INT].
11. Unload processed message data from the output FIFO.
12. Read contents of context registers, if necessary.
13. Set the SKCMR[CI] bit, to clear the done interrupt.
35.4.2
Operation with DMA
The intended DMA operation of the SKHA is as follows for ECB, CBC and CTR modes:
1. Reset/initialize.
2. Set algorithm, processing direction, and cipher mode in the SKMR.
3. Write to SKCR to enable interrupts, enable input and/or output DMA operation and set input and/or
output DMA request levels.
4. Write initialization vector/counter to the SKC
n
registers, if necessary.
5. Write symmetric key to SKKDR
n
registers.
6. Set number of bytes in key in the SKKSR.
7. Set the number of bits in the message in the SKDSR.
8. Load the input FIFO with message data.
9. Set the SKCMR[GO] bit.
10. Wait for interrupt, SKSR[INT].
11. Unload processed message data from the output FIFO.
12. Read contents of context registers, if necessary.
13. Set the SKCMR[CI] bit, to clear the done interrupt.
MCF5329 Reference Manual, Rev 3
Summary of Contents for MCF5329
Page 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...