RM0082
AS_Cryptographic co-processor (C3)
Doc ID 018672 Rev 1
391/844
21.9.10 CBC
The AES APPEND CBC instruction is 3 words long. This instruction is used for passing the
data to process (encrypt or decrypt). The length of the data to process is encoded in the first
instruction word, the second word represents the Source Address and the third word
represents the Destination Address.
Bit ‘a’ in the above table is used to set the operation to perform and has the same encoding
as in the ECB instruction
. Bits 15 to 0 in the first instruction word (cccc in
) represent the length in Bytes of the key.
21.9.11 CTR
The AES APPEND CTR instruction is 3 words long. This instruction is used for passing the
data to process (encrypt or decrypt). The length of the data to process is encoded in the first
instruction word, the second word represents the Source Address and the third word
represents the Destination Address.Address.
Bit ‘a’ in the above table is used to set the operation to perform and has the same encoding
as in the ECB instruction (
). Bits 15 to 0 in the first instruction word (cccc in
) represent the length in Bytes of the key.
21.10 Register
set
21.10.1 Register
configuration
The following table summarizes AHB mapped registers of the AES Channel connected to
Channel2 of C3.
.
Table 329.
AES CBC APPEND instruction bit encoding
W#
Bit Encoding
1
xxxx 10xa 101x xxxx cccc cccc cccc cccc
2
32 bit Source Address for the data
3
32 bit Destination Address for the data
Table 330.
AES CTR APPEND instruction bit encoding
W#
Bit Encoding
1
xxxx 10xa 110x xxxx cccc cccc cccc cccc
2
32 bit Source Address for the data
3
32 bit Destination Address for the data
Table 331.
AES registers map
Symbol
Name
Type
Initial value
Address
AES_DATA_INOUT0
Data Input/output register #0 R/W
32’h0
0x000
AES_DATA_INOUT1
Data Input/output register #1 R/W
32’h0
0x004