|
C8051F960-B-GM Datasheet, PDF (189/492 Pages) Silicon Laboratories – Ultra Low Power 128K, LCD MCU Family | |||
|
◁ |
C8051F96x
14.5.2. AES Block Cipher Decryption using SFRs
ï® First Configure AES Module for AES Block Cipher
ï¬ï Reset AES module by writing 0x00 to AES0BCFG.
ï¬ï Configure the AES Module data flow for AES Block Cipher by writing 0x00 to the AES0DCFG sfr.
ï¬ï Write key size to bits 1 and 0 of the AES0BCFG.
ï¬ï Configure the AES core for decryption by setting bit 2 of AES0BCFG.
ï¬ï Enable the AES core by setting bit 3 of AES0BCFG.
ï® Repeat alternating write sequence 16 times
ï¬ï Write ciphertext byte to AES0BIN.
ï¬ï Write decryption key byte to AES0KIN.
ï® Write remaining decryption key bytes to AES0KIN for 192-bit and 256-bit decryption only.
ï® Wait on AES done interrupt or poll bit 5 of AES0BCFG.
ï® Read 16 plaintext bytes from the AES0YOUT sfr.
If decrypting multiple blocks, this process may be repeated. It is not necessary reconfigure the AES mod-
ule for each block.
Rev. 1.0
189
|
▷ |