An Advanced Encryption Standard instruction set is now integrated into many processors. The purpose of the instruction set is to improve the speed and security of applications performing encryption and decryption using
Advanced Encryption Standard (AES).
They are often implemented as instructions implementing a single round of AES along with a special version for the last round which has a slightly different method.
The
side channel attack surface of AES is reduced when implemented in an instruction set, compared to when AES is implemented in software only.
x86 architecture 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
In computer science, an instruction set architecture (ISA), also called computer architecture, is an abstract model of a computer. A device that executes instructions described by that ISA, such as a central processing unit (CPU), is called an ' ...
for
microprocessors from
Intel and
AMD proposed by Intel in March 2008.
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
In computing, BIOS (, ; Basic Input/Output System, also known as the System BIOS, ROM BIOS, BIOS ROM or PC BIOS) is firmware used to provide runtime services for operating systems and programs and to perform hardware initialization during the ...
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 Skylake or Sky Lake may refer to:
* Skylake (microarchitecture), the codename for a processor microarchitecture developed by Intel as the successor to Broadwell
* Skylake (Mysia), a town of ancient Mysia, now in Turkey
* Sky Lake, Florida
Sky La ...
(and later) processors
AMD
Several
AMD processors support AES instructions:
*
Jaguar
The jaguar (''Panthera onca'') is a large cat species and the only living member of the genus '' Panthera'' native to the Americas. With a body length of up to and a weight of up to , it is the largest cat species in the Americas and the th ...
processors and newer
*
Puma
Puma or PUMA may refer to:
Animals
* ''Puma'' (genus), a genus in the family Felidae
** Puma (species) or cougar, a large cat
Businesses and organisations
* Puma (brand), a multinational shoe and sportswear company
* Puma Energy, a mid- and d ...
processors and newer
* "Heavy Equipment" processors
**
Bulldozer
A bulldozer or dozer (also called a crawler) is a large, motorized machine equipped with a metal blade to the front for pushing material: soil, sand, snow, rubble, or rock during construction work. It travels most commonly on continuous track ...
processors
**
Piledriver processors
**
Steamroller
A steamroller (or steam roller) is a form of road roller – a type of heavy construction machinery used for leveling surfaces, such as roads or airfields – that is powered by a steam engine. The leveling/flattening action is achieved through ...
processors
**
Excavator
Excavators are heavy construction equipment consisting of a boom, dipper (or stick), bucket and cab on a rotating platform known as the "house". The house sits atop an undercarriage with tracks or wheels. They are a natural progression fro ...
processors and newer
*
Zen (and later) based processors
Hardware acceleration in other architectures
AES support with unprivileged processor instructions is also available in the latest
SPARC processors (
T3,
T4,
T5, M5, and forward) and in latest
ARM processors. The
SPARC T4 processor, introduced in 2011, has user-level instructions implementing AES rounds. These instructions are in addition to higher level encryption commands. The
ARMv8-A processor architecture, announced in 2011, including the ARM Cortex-A53 and A57 (but not previous v7 processors like the Cortex A5, 7, 8, 9, 11, 15 ) also have user-level instructions which implement AES rounds.
Supporting x86 CPUs
VIA x86 CPUs,
AMD Geode, and
Marvell Kirkwood Marvell may refer to:
* Marvell, Arkansas, a small city in the United States
* Marvell Technology Group, American semiconductor company
People
* Andrew Marvell (1621–1678), English metaphysical poet and politician
* Marcus Marvell (born 1970), ...
(ARM, mv_cesa in Linux) use driver-based accelerated AES handling instead. (See
Crypto API (Linux).)
The following chips, while supporting AES hardware acceleration, do not support AES-NI:
* AMD
Geode LX processors
*
VIA
Via or VIA may refer to the following:
Science and technology
* MOS Technology 6522, Versatile Interface Adapter
* ''Via'' (moth), a genus of moths in the family Noctuidae
* Via (electronics), a through-connection
* VIA Technologies, a Taiwan ...
, using
VIA PadLock[Cryptographic Hardware Accelerators](_blank)
on OpenWRT.org
**
VIA C3 Nehemiah C5P (Eden-N) processors
**
VIA C7 Esther C5J processors
ARM architecture
Programming information is available in ''ARM Architecture Reference Manual ARMv8, for ARMv8-A architecture profile (Section A2.3 "The Armv8 Cryptographic Extension")''.
* ARMv8-A architecture
** ARM cryptographic extensions optionally supported on ARM Cortex-A30/50/70 cores
* Cryptographic hardware accelerators/engines
**
Allwinner
*** A10, A20, A30, A31, A80, A83T, H3 and A64 using ''Security System''
**
Broadcom
*** BCM5801/BCM5805/BCM5820 using ''Security Processor''
**
NXP Semiconductors
NXP Semiconductors N.V. (NXP) is a Dutch semiconductor designer and manufacturer with headquarters in Eindhoven, Netherlands. The company employs approximately 31,000 people in more than 30 countries. NXP reported revenue of $11.06 billion in 2 ...
*** i.MX6 onwards
**
Qualcomm
Qualcomm () is an American multinational corporation headquartered in San Diego, California, and incorporated in Delaware. It creates semiconductors, software, and services related to wireless technology. It owns patents critical to the 5G, 4 ...
*** Snapdragon 805 onwards
**
Rockchip
*** RK30xx series onwards
**
Samsung
*** Exynos 3 series onwards
RISC-V architecture
Whilst the RISC-V architecture doesn't include AES-specific instructions, a number of RISC-V chips include integrated AES co-processors. Examples include:
* Dual-core
RISC-V 64 bits Sipeed-M1 support AES and SHA256.
* RISC-V architecture based
ESP32-C (as well as Xtensa-based ESP32), support AES, SHA, RSA, RNG, HMAC, digital signature and XTS 128 for flash.
* Bouffalo Labs BL602/604 32-bit RISC-V supports various AES and SHA variants.
POWER architecture
Since the
Power ISA v.2.07, the instructions
vcipher
and
vcipyherlast
implement one round of AES directly.
IBM z/Architecture
IBM z9 or later mainframe processors support AES as single-opcode (KM, KMC) AES ECB/CBC instructions via IBM's CryptoExpress hardware. These single-instruction AES versions are therefore easier to use than Intel NI ones, but may not be extended to implement other algorithms based on AES round functions (such as the
Whirlpool and
Grøstl hash functions).
Other architectures
*
Atmel XMEGA (on-chip accelerator with parallel execution, not an instruction)
*
SPARC T3 and later processors have hardware support for several cryptographic algorithms, including AES.
*
Cavium Octeon MIPS
Cavium was a fabless semiconductor company based in San Jose, California, specializing in ARM-based and MIPS-based network, video and security processors and SoCs. The company was co-founded in 2000 by Syed B. Ali and M. Raghib Hussain, who ...
All Cavium Octeon MIPS-based processors have hardware support for several cryptographic algorithms, including AES using special coprocessor 3 instructions.
Performance
In ''AES-NI Performance Analyzed'', Patrick Schmid and Achim Roos found "impressive results from a handful of applications already optimized to take advantage of Intel's AES-NI capability". A performance analysis using the
Crypto++ security library showed an increase in throughput from approximately 28.0 cycles per byte to 3.5 cycles per byte with
AES
AES may refer to:
Businesses and organizations Companies
* AES Corporation, an American electricity company
* AES Data, former owner of Daisy Systems Holland
* AES Eletropaulo, a former Brazilian electricity company
* AES Andes, formerly AES Gener ...
/
GCM versus a
Pentium 4 with no acceleration.
Supporting software
Most modern compilers can emit AES instructions.
Much security and cryptography software supports the AES instruction set, including the following notable core infrastructure:
*
Apple's FileVault 2 full-disk encryption in
macOS 10.10+
* NonStop
SSH2
Protein phosphatase Slingshot homolog 2 is an enzyme that in humans is encoded by the ''SSH2'' gene
In biology, the word gene (from , ; "...Wilhelm Johannsen coined the word gene to describe the Mendelian units of heredity..." meaning ''g ...
, NonStop cF
SSL SSL may refer to:
Entertainment
* RoboCup Small Size League, robotics football competition
* ''Sesame Street Live'', a touring version of the children's television show
* StarCraft II StarLeague, a Korean league in the video game
Natural language ...
Library and BackBox
VTC Software in
HPE Tandem NonStop OS L-series
*
Cryptography API: Next Generation (CNG) (requires Windows 7)
*
Linux's Crypto API
*
Java 7
HotSpot
Hotspot, Hot Spot or Hot spot may refer to:
Places
* Hot Spot, Kentucky, a community in the United States
Arts, entertainment, and media Fictional entities
* Hot Spot (comics), a name for the DC Comics character Isaiah Crockett
* Hot Spot (Tra ...
*
Network Security Services (NSS) version 3.13 and above (used by
Firefox and
Google Chrome
Google Chrome is a cross-platform web browser developed by Google. It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox. Versions were later released for Linux, macOS ...
)
*
Solaris Cryptographic Framework
Solaris may refer to:
Arts and entertainment Literature, television and film
* ''Solaris'' (novel), a 1961 science fiction novel by Stanisław Lem
** ''Solaris'' (1968 film), directed by Boris Nirenburg
** ''Solaris'' (1972 film), directed by ...
on
Solaris 10 onwards
*
FreeBSD
FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
's OpenCrypto API (aesni(4) driver)
*
OpenSSL
OpenSSL is a software library for applications that provide secure communications over computer networks against eavesdropping or need to identify the party at the other end. It is widely used by Internet servers, including the majority of HTT ...
1.0.1 and above
*
GnuTLS
*
Libsodium
*
VeraCrypt
*
Go programming language
Go is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. It is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style conc ...
*
BitLocker
A fringe use of the AES instruction set involves using it on block ciphers with a similarly-structured
S-box, using
affine isomorphism to convert between the two.
SM4 and
Camellia have been accelerated using AES-NI.
See also
*
Advanced Vector Extensions (AVX)
*
CLMUL instruction set
*
FMA instruction set (FMA3, FMA4)
*
RDRAND
Notes
References
External links
Intel Advanced Encryption Standard Instructions (AES-NI)AES instruction set whitepaper(2.93 MiB, PDF) from Intel
{{DEFAULTSORT:Aes Instruction Set
X86 architecture
X86 instructions
Advanced Micro Devices technologies
Advanced Encryption Standard