An Advanced Encryption Standard instruction set (AES instruction set) is a set of instructions that are specifically designed to perform AES encryption and decryption operations efficiently. These instructions are typically found in modern processors and can greatly accelerate AES operations compared to software implementations. An AES instruction set includes instructions for key expansion, encryption, and decryption using various key sizes (128-bit, 192-bit, and 256-bit). Major implementations include AES-NI in x86 processors and the Cryptographic Extension of the ARM architecture. The instruction set is often implemented as a set of instructions that can perform a single round of AES along with a special version for the last round which has a slightly different method. When AES is implemented as an instruction set instead of as software, it can have improved security, as its side channel attack surface is reduced.
AES-NI in x86 processors
AES-NI (or the Intel Advanced Encryption Standard New Instructions; AES-NI) was the first major implementation. AES-NI is an extension to the x86 instruction set architecture for microprocessors from Intel and AMD proposed by Intel in March 2008. A wider version of AES-NI, AVX-512 Vector AES instructions (VAES), is found in AVX-512.
Instructions
Intel The following Intel processors support the AES-NI instruction set:
Westmere based processors, specifically: Westmere-EP (a.k.a. Gulftown Xeon 5600-series DP server model) processors Clarkdale processors (except Core i3, Pentium and Celeron) Arrandale processors (except Celeron, Pentium, Core i3, Core i5-4XXM) Sandy Bridge processors: Desktop: all except Pentium, Celeron, Core i3 Mobile: all Core i7 and Core i5. Several vendors have shipped BIOS configurations with the extension disabled; a BIOS update is required to enable them. Ivy Bridge processors All i5, i7, Xeon and i3-2115C only Haswell processors (all except i3-4000m, Pentium and Celeron) Broadwell processors (all except Pentium and Celeron) Silvermont/Airmont processors (all except Bay Trail-D and Bay Trail-M) Goldmont (and later) processors Skylake (and later) processors
AMD Several AMD processors support AES instructions:
"Heavy Equipment" processors Bulldozer processors Piledriver processors Steamroller processors Excavator processors and newer Jaguar processors and newer Puma processors and newer Zen (and later) based processors
ARM architecture The ARMv8-A architecture, announced in 2011, added AES instructions as part of its optional Cryptographic Extension, together with instructions for SHA-1 and SHA-256 and a 64-bit carry-less multiplication instruction. The instructions are available in both the 64-bit (A64) and the 32-bit (A32 and T32) instruction sets. The Apple A7, used in the iPhone 5s that Apple promoted in September 2013 as the first smartphone with a 64-bit processor, implemented ARMv8-A including the instructions accelerating AES, SHA-1 and SHA-256. In ARM's own processor designs, such as the Cortex-A53 and Cortex-A57, the Cryptographic Extension is not included in the base product and is supplied only under an additional licence, so some ARMv8 chips lack it; for example, the Broadcom BCM2711 used in the Raspberry Pi 4 does not implement it.
Instructions
Unlike Intel's AES-NI, whose AESENC instruction performs a complete round ending with AddRoundKey, ARM divides a round between two instructions and applies the round key at the beginning. An AES encryption therefore consists of pairs of AESE and AESMC, followed by a final AESE (the last AES round has no MixColumns step) and an exclusive or with the last round key. There are no equivalents of AESENCLAST or AESKEYGENASSIST. Some ARM cores execute an adjacent, dependent AESE/AESMC or AESD/AESIMC pair faster than the two instructions separately; ARM's optimization guide for the Cortex-A57 therefore recommends keeping these instructions in pairs in AES encryption and decryption loops.
Scalable Vector Extension The Scalable Vector Extension has an optional AES extension (FEAT_SVE_AES) providing versions of AESE, AESD, AESMC and AESIMC that operate independently on each 128-bit segment of a scalable vector register, together with 128-bit polynomial multiplication instructions (PMULLB and PMULLT). A later extension, FEAT_SVE_AES2, adds forms of these instructions that operate on several vector registers at once.
Cryptographic engines in ARM-based SoCs Separately from the CPU instructions, many ARM-based systems on a chip include cryptographic engines that software uses through device drivers. For example, the Marvell Kirkwood, the embedded core of a range of SoCs from Marvell Technology, uses driver-based accelerated AES handling (mv_cesa in Linux). (See Crypto API (Linux).)
Allwinner A10, A20, A30, A31, A80, A83T, H3 and A64 using Security System Broadcom BCM5801/BCM5805/BCM5820 using Security Processor NXP Semiconductors i.MX6 onwards Qualcomm Snapdragon 810 onwards Rockchip RK30xx series onwards Samsung Exynos 7 series onwards
Other CPU implementations
AES support with unprivileged processor instructions is also available in the latest SPARC processors (T3, T4, T5, M5, and forward). The SPARC T4 processor, introduced in 2011, has user-level instructions implementing AES rounds. These instructions are in addition to higher level encryption commands.
x86 CPUs offering non-AES-NI acceleration interfaces Some x86 processors provide AES acceleration without supporting AES-NI. AMD Geode processors use driver-based accelerated AES handling instead (see Crypto API (Linux)), while VIA processors provide AES through their own instruction set. The following chips, while supporting AES hardware acceleration, do not support AES-NI:
AMD Geode LX processors VIA x86 processors provide AES through their own VIA PadLock instructions, introduced in 2003, several years before Intel proposed AES-NI. Instead of performing a single AES round, an instruction such as xcryptcbc encrypts or decrypts a whole block of memory, and, like AES-NI, it can be used by any program. Processors with PadLock AES include: VIA C3 Nehemiah C5P (Eden-N) processors VIA C7 Esther C5J processors
… excerpt ends here. Continue reading the full article.