Sharing AES Engine for RISC-V Custom Instructions Performing Encryption and Decryption
Zahra Tavassoli Hojati, Zahra Jahanpeima, Maryam Rajabalipanah, Hossein Ta'ati, Atefe Rabiei, Zainalabedin Navabi · 2024
In light of the critical role of cryptography in safeguarding data and the advantages of AES for hardware implementation, this paper presents a hardware implementation of the 128-bit Advanced Encryption Standard (AES) algorithm. We designed an AES unit that utilizes the same hardware for both encryption and decryption, which we integrated into a RISC-V-based processor, by developing four custom instructions to facilitate this integration. Our methodology leverages the inherent parallelism of the AES algorithm to optimize speed, enhance security features, and ensure low power consumption along with efficient resource utilization. A comprehensive performance analysis showed a nearly 19x speedup compared to a software implementation, demonstrating significant performance and efficiency benefits.