AES instruction set
   HOME

TheInfoList



OR:

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 The Advanced Encryption Standard (AES), also known by its original name Rijndael (), is a specification for the encryption of electronic data established by the U.S. National Institute of Standards and Technology (NIST) in 2001. AES is a variant ...
(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
microprocessor A microprocessor is a computer processor where the data processing logic and control is included on a single integrated circuit, or a small number of integrated circuits. The microprocessor contains the arithmetic, logic, and control circu ...
s from
Intel Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California, Santa Clara, California. It is the world's largest semiconductor chip manufacturer by revenue, and is one of the devel ...
and AMD proposed by Intel in March 2008.


Instructions


Intel

The following
Intel Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California, Santa Clara, California. It is the world's largest semiconductor chip manufacturer by revenue, and is one of the devel ...
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 thi ...
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 trac ...
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 throug ...
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 fr ...
processors and newer *
Zen Zen ( zh, t=禪, p=Chán; ja, text= 禅, translit=zen; ko, text=선, translit=Seon; vi, text=Thiền) is a school of Mahayana Buddhism that originated in China during the Tang dynasty, known as the Chan School (''Chánzong'' 禪宗), and ...
(and later) based processors


Hardware acceleration in other architectures

AES support with unprivileged processor instructions is also available in the latest
SPARC SPARC (Scalable Processor Architecture) is a reduced instruction set computer (RISC) instruction set architecture originally developed by Sun Microsystems. Its design was strongly influenced by the experimental Berkeley RISC system developed ...
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, using VIA PadLockCryptographic Hardware Accelerators
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 Allwinner Technology Co., Ltd is a fabless semiconductor company that designs mixed-signal systems on a chip (SoC). The company is headquartered in Zhuhai, Guangdong, China. It has a sales and technical support office in Shenzhen, Guangdong ...
*** A10, A20, A30, A31, A80, A83T, H3 and A64 using ''Security System'' **
Broadcom Broadcom Inc. is an American designer, developer, manufacturer and global supplier of a wide range of semiconductor and infrastructure software products. Broadcom's product offerings serve the data center, networking, software, broadband, wirel ...
*** 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 *** Snapdragon 805 onwards ** Rockchip *** RK30xx series onwards **
Samsung The Samsung Group (or simply Samsung) ( ko, 삼성 ) is a South Korean multinational manufacturing conglomerate headquartered in Samsung Town, Seoul, South Korea. It comprises numerous affiliated businesses, most of them united under the ...
*** 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 RISC-V (pronounced "risk-five" where five refers to the number of generations of RISC architecture that were developed at the University of California, Berkeley since 1981) is an open standard instruction set architecture (ISA) based on establi ...
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 A whirlpool is a body of rotating water produced by opposing currents or a current running into an obstacle. Small whirlpools form when a bath or a sink is draining. More powerful ones formed in seas or oceans may be called maelstroms ( ). ''Vo ...
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++ Crypto++ (also known as CryptoPP, libcrypto++, and libcryptopp) is a free and open-source C++ class library of cryptographic algorithms and schemes written by Wei Dai. Crypto++ has been widely used in academia, student projects, open-source, and ...
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 macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac (computer), Mac computers. Within the market of ...
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 Java (; id, Jawa, ; jv, ꦗꦮ; su, ) is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea to the north. With a population of 151.6 million people, Java is the world's mo ...
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, macO ...
) *
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 HT ...
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 BitLocker is a full volume encryption feature included with Microsoft Windows versions starting with Windows Vista. It is designed to protect data by providing encryption for entire volumes. By default, it uses the AES encryption algorithm in ...
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 ''Camellia'' (pronounced or ) is a genus of flowering plants in the family Theaceae. They are found in eastern and southern Asia, from the Himalayas east to Japan and Indonesia. There are more than 220 described species, with some controvers ...
have been accelerated using AES-NI.


See also

*
Advanced Vector Extensions Advanced Vector Extensions (AVX) are extensions to the x86 instruction set architecture for microprocessors from Intel and Advanced Micro Devices (AMD). They were proposed by Intel in March 2008 and first supported by Intel with the Sandy Bridg ...
(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