Cryptographic accelerator

In computing, a cryptographic accelerator is hardware designed specifically to perform computationally intensive cryptographic operations more efficiently than a general-purpose CPU. Early cryptographic accelerators were separate co-processors, such as expansion cards for servers. Many modern processors instead provide cryptographic instructions, such as AES-NI in x86 processors and the Cryptographic Extension of the ARM architecture, and many systems on a chip include dedicated cryptographic engines.
Types
[edit]Processor instructions
[edit]Some processors implement cryptographic operations as instruction set extensions. These instructions are executed by the processor itself rather than by a separate device, so ordinary programs can use them directly, without an operating-system driver.[1][2]
Some of these instructions process a whole block of memory at once. VIA PadLock, introduced in VIA's x86 processors in 2003, provides instructions such as xcryptcbc that encrypt or decrypt a block of memory with AES.[1][2] On IBM mainframes, the CP Assist for Cryptographic Functions (CPACF) is a set of cryptographic instructions available on every processor since the z990 and z890;[3] AES was added with the System z9.[4] The processor cannot execute other instructions while a CPACF operation is in progress.[5]
Other instructions implement individual steps of an algorithm, such as one round of AES, which software combines into a complete operation:
- Intel proposed the AES-NI instructions for x86 in 2008,[6] and they first appeared in its Westmere processors in 2010.[7] AMD added them in its Bulldozer processors.[8]
- The ARMv8-A architecture, announced in 2011, includes an optional Cryptographic Extension with instructions for AES, SHA-1 and SHA-256.[9][10] The Apple A7 in the iPhone 5s (2013) was an early processor implementing it.[11]
- The Power ISA added AES instructions in version 2.07.[12]
- RISC-V International ratified scalar cryptography extensions in December 2021[13] and vector cryptography extensions in September 2023.[14]
Besides AES, such instruction sets commonly accelerate SHA hash functions (for example, the Intel SHA extensions) and carry-less multiplication (for example, the CLMUL instruction set), which is used in Galois/Counter Mode and for cyclic redundancy checks. See AES instruction set for details.
Integrated cryptographic engines
[edit]Many systems on a chip and microcontrollers include cryptographic engines as on-chip peripherals, which software uses through device drivers rather than through processor instructions. For example, Espressif's ESP32 microcontrollers include hardware accelerators for AES, SHA and RSA.[15] Intel's Xeon server processors have included the QuickAssist Technology (QAT) engine, which accelerates encryption, public-key cryptography and compression, since the 4th generation Xeon Scalable processors; QAT is also available on separate PCI Express cards.[16][17]
Expansion cards
[edit]Cryptographic accelerators are also available as separate expansion cards, such as Sun Microsystems' PCI card pictured above and IBM's PCI Cryptographic Accelerator (PCICA) for its mainframes.[3] A hardware security module also performs cryptographic operations, but its main purpose is to protect cryptographic keys.
Operating system support
[edit]Accelerators that are accessed through device drivers are usually made available to applications by an operating-system framework. The BSD family of systems has the OpenBSD Cryptographic Framework (OCF), Linux systems have the Crypto API, Solaris OS has the Solaris Cryptographic Framework (SCF) and Microsoft Windows has the Microsoft CryptoAPI and its successor, Cryptography API: Next Generation (CNG).
Processor instructions can be used directly by applications. Cryptographic libraries such as OpenSSL and its fork LibreSSL, which are widely used on Unix-like operating systems, use instructions such as AES-NI when they are available.[18]
See also
[edit]References
[edit]- 1 2 Garzik, Jeff (8 December 2003). "VIA on-chip RNG and crypto..." linux-kernel (Mailing list). Retrieved 28 November 2026.
'xcrypt' provides on-chip AES encrypt and decrypt, similarly useable by any program.
- 1 2 Ludvig, Michal (6 April 2005). "VIA PadLock—Wicked Fast Encryption". Linux Journal. Retrieved 28 November 2026.
- 1 2 "CP Assist for Cryptographic Functions (CPACF)". z/OS Cryptographic Services ICSF System Programmer's Guide. IBM. Retrieved 28 November 2026.
- ↑ "Cryptographic hardware features". z/OS Cryptographic Services ICSF. IBM. Retrieved 28 November 2026.
- ↑ "IBM Z cryptographic hardware categories". Linux on IBM Z and IBM LinuxONE. IBM. Retrieved 28 November 2026.
- ↑ "Intel Software Network". Intel. Archived from the original on 7 April 2008. Retrieved 2008-04-05.
- ↑ Gueron, Shay (2010). "Intel Advanced Encryption Standard (AES) Instruction Set White Paper" (PDF). Intel. Retrieved 2012-09-20.
- ↑ "Following Instructions". AMD. November 22, 2010. Archived from the original on November 26, 2010. Retrieved 2011-01-04.
- ↑ Grisenthwaite, Richard (2011). "ARMv8-A Technology Preview" (PDF). ARM. Archived from the original (PDF) on 2018-06-10. Retrieved 2012-09-20.
- ↑ "ARM Cortex-A53 MPCore Processor Cryptography Extension Technical Reference Manual". ARM. 2014. ARM DDI 0501F. Retrieved 28 November 2026.
- ↑ Smith, Tony (12 September 2013). "Apple's iOS 64-bit iUpgrade: Don't expect a 2x performance leap". The Register. Retrieved 28 November 2026.
- ↑ "Power ISA Version 2.07 B". Retrieved 2022-01-07.
- ↑ "RISC-V International Ratifies 15 New Specifications, Opening Up New Possibilities for RISC-V Designs" (Press release). RISC-V International. 2 December 2021. Retrieved 28 November 2026.
- ↑ "Ratified Extensions". RISC-V International Wiki. Retrieved 28 November 2026.
- ↑ "ESP32 Series Datasheet" (PDF). Espressif Systems. 2021-03-19. Retrieved 2021-05-03.
- ↑ "Accelerating Security and Privacy in the Data Center" (PDF). 4th Gen Intel Xeon Scalable Processor (Business brief). Intel. 2022. Retrieved 28 November 2026.
directly integrated into the CPU for the first time in the 4th Gen Intel Xeon Scalable processor
- ↑ "Intel QuickAssist Adapter Family for Servers". Intel. Retrieved 28 November 2026.
- ↑ "Support for OpenSSL 3.0.x libraries from UNIX operating systems". help.hcl-software.com. Retrieved 2024-10-03.