Abstract
Intel’s "Ice Lake" architecture introduces new vectorized instructions (VAES* and VPCLMULQDQ) that expand AES operations to 256-bit and 512-bit registers. This paper demonstrates how these instructions can achieve a 3–4x performance boost, potentially pushing AES throughput to a staggering 0.16 cycles per byte. By effectively utilizing the AVX-512 register file, both parallel and serial encryption modes can be significantly accelerated.
Introduction
The Advanced Encryption Standard (AES) serves as the fundamental building block for modern digital security, underpinning protocols from TLS/HTTPS to full-disk encryption. In 2010, Intel introduced the AES-NI instruction set, which drastically improved performance by implementing AES rounds directly in hardware. However, these instructions were designed for 128-bit XMM registers. As global data volumes continue to surge, the 128-bit limitation has become a bottleneck for high-performance systems. The introduction of Intel's "Ice Lake" architecture brings AVX-512 support for AES, offering a path to scale cryptographic throughput by utilizing 512-bit ZMM registers.
Vectorized Instruction Sets
The core of this advancement lies in two new instruction sets:
- VAES* (Vectorized AES): These instructions allow a single AES round to be performed on multiple 128-bit blocks simultaneously within 256-bit (YMM) or 512-bit (ZMM) registers.
- VPCLMULQDQ: A vectorized version of carry-less multiplication, essential for the universal hashing used in Authenticated Encryption with Associated Data (AEAD) schemes like AES-GCM.
Implementation of Parallel Modes
For "naturally parallel" modes such as AES-CTR, the transition to vectorized instructions is relatively direct. By replacing 128-bit XMM registers with 512-bit ZMM registers, the processor can handle four AES blocks in a single instruction sequence.
As shown in the assembly comparison, the vectorized implementation utilizes %zmm registers and vbroadcasti64x2 to prepare counters, effectively quadrupling the data processed per iteration compared to the legacy implementation.
Vectorizing Serial Modes via Transposition
Serial modes like AES-CBC present a greater challenge because each block's encryption depends on the previous block's ciphertext, preventing intra-stream parallelization. To overcome this, the authors propose a "transposition" technique. By interleaving data from four independent serial streams into a single 512-bit register, the hardware can process four separate messages in parallel.
This approach utilizes instructions like VPERMI2Q to shuffle data blocks (A, B, C, D) into a format suitable for wide-register processing. While this adds complexity to the data loading phase, the throughput gains on large batches of data far outweigh the shuffling overhead.
Performance and Results
Due to the pre-release nature of the hardware at the time of the study, performance was evaluated using the Intel Software Developer Emulator (SDE). The primary metric was the instruction count ratio between legacy AES-NI and the new vectorized implementations.
The study found a consistent 3x to 4x improvement in instruction efficiency when moving to the new vectorized instructions:
- AES-CTR: 3.96x improvement at 8,192 bytes.
- POLYVALx8: 3.87x improvement at 16,384 bytes.
The authors predict that these optimizations will allow software to approach the theoretical hardware limit of 0.16 cycles per byte (C/B), a massive leap from the ~0.64 C/B seen on the previous generation of processors.
Conclusion
The introduction of VAES* and VPCLMULQDQ instructions represents a major milestone in cryptographic hardware acceleration. By expanding the register width and providing efficient vectorization primitives, Intel's Ice Lake architecture enables a multi-fold increase in AES throughput. While serial modes require more sophisticated data management, the ability to process multiple streams in parallel ensures that the benefits of AVX-512 are accessible across a wide range of cryptographic applications.
Summary updated