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
Processor instructions 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. 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. 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; AES was added with the System z9. The processor cannot execute other instructions while a CPACF operation is in progress. 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, and they first appeared in its Westmere processors in 2010. AMD added them in its Bulldozer processors. The ARMv8-A architecture, announced in 2011, includes an optional Cryptographic Extension with instructions for AES, SHA-1 and SHA-256. The Apple A7 in the iPhone 5s (2013) was an early processor implementing it. The Power ISA added AES instructions in version 2.07. RISC-V International ratified scalar cryptography extensions in December 2021 and vector cryptography extensions in September 2023. 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 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. 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.
Expansion cards 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. A hardware security module also performs cryptographic operations, but its main purpose is to protect cryptographic keys.
Operating system support 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.
See also AES instruction set Hardware security module TLS acceleration Hardware-based Encryption
References

