AES hardware accelerator (AES)
The AES hardware accelerator (AES) encrypts or decrypts data in compliance with the advanced encryption standard (AES) defined by NIST.
AES supports ECB, CBC, CTR, GCM, GMAC, and CCM chaining modes for key sizes of 128 or 256 bits.
The peripheral supports DMA single transfers for incoming and outgoing data (two DMA channels are required).
The AES main features are:
- Compliant with NIST FIPS publication 197 “Advanced encryption standard (AES)” (November 2001)
- Encryption and decryption with multiple chaining modes:
- Electronic codebook (ECB) mode
- Cipher block chaining (CBC) mode
- Counter (CTR) mode
- Galois counter mode (GCM)
- Galois message authentication code (GMAC) mode
- Counter with CBC-MAC (CCM) mode
- 128-bit data block processing, supporting cipher key lengths of 128‑bit and 256‑bit
- 51 or 75 clock cycle latency in ECB mode for processing one 128‑bit block with, respectively, 128‑bit or 256‑bit key
- Integrated key scheduler to compute the last round key for ECB/CBC decryption
- 256-bit write-only registers for storing cryptographic keys (eight 32‑bit registers)
- 128-bit registers for storing initialization vectors (four 32‑bit registers)
- 32-bit buffer for data input and output
- Automatic data flow control supporting two direct memory access (DMA) channels, one for incoming data, one for processed data. Only single transfers are supported.
- Data-swapping logic to support 1-, 8-, 16-, or 32-bit data
- AMBA AHB slave peripheral, accessible through 32-bit word single accesses only. Other access types generate an AHB error, and other than 32‑bit writes may corrupt the register content.
- Software (in CPU mode only, not in DMA mode) can suspend a message if AES needs to process another message with a higher priority, then resume the original message.
| Modes or features(1) | AES |
|---|---|
| ECB, CBC chaining | X |
| CTR, CCM, GCM chaining | X |
| AES 128-bit ECB encryption in cycles | 51 |
| DHUK and BHK key selection | - |
| Resistant to side-channel attacks | - |
| Shared key between SAES and AES | X |
| Key sizes in bits | 128/256 |