[Paper Review] GPU Accelerated AES Algorithm
This paper proposes a GPU-accelerated AES-128 implementation using CUDA, leveraging ECB mode, T-box lookups, and a 'one state per thread' scheduling granularity. It achieves up to 223.9 Mbps encryption and 203.6 Mbps decryption throughput on a GeForce 940MX, demonstrating significant speedup over CPU for large files, with source code and results publicly available on GitHub.
It has been widely accepted that Graphics Processing Units (GPU) is one of promising schemes for encryption acceleration, in particular, the support of complex mathematical calculations such as integer and logical operations makes the implementation easier; however, complexes such as parallel granularity, memory allocation still imposes a burden on real world implementations. In this paper, we propose a new approach for Advanced Encryption Standard accelerations, including both encryption and decryption. Specifically, we adapt the Electronic Code Book mode for cryptographic transformation, look up table scheme for fast lookup, and a granularity of one state per thread for thread scheduling. Our experimental results offer researchers a good understanding on GPU architectures and software accelerations. In addition, both our source code and experimental results are freely available.
Motivation & Objective
- To develop a high-performance GPU-based AES-128 implementation for both encryption and decryption.
- To investigate the impact of thread scheduling granularity and memory allocation strategies on GPU AES performance.
- To benchmark GPU acceleration for AES using a standardized approach across varying file sizes.
- To provide a reproducible, open-source implementation for researchers to study GPU architecture and cryptographic acceleration.
Proposed method
- Adopts the Electronic Code Book (ECB) mode for AES cryptographic transformation.
- Employs T-boxes for fast substitution and lookup operations, reducing computational overhead.
- Uses a thread scheduling granularity of one AES state (16 bytes) per GPU thread to maximize parallelism.
- Stores frequently accessed T-boxes in constant memory to reduce global memory access latency.
- Allocates plaintext data in GPU device memory and processes each block via individual threads using on-chip registers.
- Implements both encryption and decryption using CUDA kernels with optimized memory access patterns.
Experimental results
Research questions
- RQ1How does the 'one state per thread' granularity affect AES performance on GPU compared to coarser granularities?
- RQ2What is the performance gain of GPU-accelerated AES-128 over CPU-based implementations for large data files?
- RQ3How do memory allocation strategies (e.g., constant memory for T-boxes) influence AES throughput on GPU?
- RQ4What is the scalability of GPU AES performance as file size increases beyond 4KB?
- RQ5How does the choice of GPU architecture and memory hierarchy affect AES encryption and decryption throughput?
Key findings
- GPU-based AES encryption achieves a peak throughput of 223,928,517 bytes per second (223.9 Mbps) on a GeForce 940MX for a file size of 1,190,402 bytes.
- GPU-based AES decryption reaches a peak throughput of 203,592,269 bytes per second (203.6 Mbps) at the same file size.
- For files larger than 4KB, GPU performance consistently outperforms CPU, with throughput increasing significantly as file size grows.
- CPU performance remains relatively stable across file sizes, while GPU throughput scales with the number of concurrent threads.
- The one-state-per-thread scheduling strategy achieves optimal performance, outperforming coarser granularities like 32 or 64 bytes/thread.
- The use of constant memory for T-boxes reduces memory latency and improves lookup efficiency, contributing to higher overall throughput.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.