NLU-V: A Family of Instruction Set Extensions for Efficient Symmetric Cryptography on RISC-V

被引:0
|
作者
Uzuner, Hakan [1 ]
Kavun, Elif Bilge [1 ]
机构
[1] Univ Passau, Fac Comp Sci & Math, D-94032 Passau, Germany
关键词
symmetric cryptography; block ciphers; instruction set extension; RISC-V; reconfigurable hardware; FPGA;
D O I
10.3390/cryptography8010009
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Cryptographic primitives nowadays are not only implemented in high-performance systems but also in small-scale systems, which are increasingly powered by open-source processors, such as RISC-V. In this work, we leverage RISC-V's modular base instruction set and architecture to propose a generic instruction set extension (ISE) for symmetric cryptography. We adapt the work from Engels et al. in ARITH'13, the non-linear/linear instruction set extension (NLU), which presents a generic hardware/software co-design solution for efficient symmetric crypto implementations through a hardware unit extending the 8-bit AVR instruction set. These new instructions realize non-linear and linear layers, which are widely used to implement the block ciphers in symmetric cryptography. Our proposal modifies and extends the NLU instructions to a 32-bit RISC-V architecture; hence, we call the proposed ISE 'NLU-V'. The proposed architecture is integrated into the open-source RISC-V implementation 'Icicle' and synthesized on a Xilinx Kintex-7 XC7K160T FPGA. The area overhead for the proposed NLU-V ISE is 1088 slice registers and 4520 LUTs. As case studies, the PRESENT and AES block ciphers are implemented using the new ISE on RISC-V in assembly. Our evaluation metric to showcase the performance gain, Z 'time-area-product (TAP)' (the execution time in clock cycles times code memory consumption), reflects the impact of the proposed family of instructions on the performance of the cipher implementations. The simulations show that the NLU-V achieves 89% gain for PRESENT and 68% gain for AES. Further, the NLU-V requires 44% less lines of code for the PRESENT and 23% less for the AES implementation.
引用
收藏
页数:15
相关论文
共 50 条
  • [1] RISC-V Instruction Set Extensions for Lightweight Symmetric Cryptography
    Cheng H.
    Großschädl J.
    Marshall B.
    Page D.
    Pham T.
    IACR Transactions on Cryptographic Hardware and Embedded Systems, 2022, 2023 (01): : 193 - 237
  • [2] RISC-V Instruction Set Architecture Extensions: A Survey
    Cui, Enfang
    Li, Tianzheng
    Wei, Qian
    IEEE ACCESS, 2023, 11 : 24696 - 24711
  • [3] The design of scalar aes instruction set extensions for risc-v
    Marshall B.
    Newell G.R.
    Page D.
    Saarinen M.-J.O.
    Wolf C.
    IACR Transactions on Cryptographic Hardware and Embedded Systems, 2020, 2021 (01): : 109 - 136
  • [4] Efficient Cryptography on the RISC-V Architecture
    Stoffelen, Ko
    PROGRESS IN CRYPTOLOGY - LATINCRYPT 2019, 2019, 11774 : 323 - 340
  • [5] Efficient Verification Framework for RISC-V Instruction Extensions with FPGA Acceleration
    Jiang, Zijian
    Zheng, Keran
    Bao, Yungang
    Shi, Kan
    2024 INTERNATIONAL SYMPOSIUM OF ELECTRONICS DESIGN AUTOMATION, ISEDA 2024, 2024, : 345 - 350
  • [6] Implementing the Draft RISC-V Scalar Cryptography Extensions
    Marshall, Ben
    Page, Daniel
    Pham, Thinh
    PROCEEDINGS OF THE 9TH INTERNATIONAL WORKSHOP ON HARDWARE AND ARCHITECTURAL SUPPORT FOR SECURITY AND PRIVACY, HASP 2020, 2020,
  • [7] Improving the Efficiency of Cryptography Algorithms on Resource-Constrained Embedded Systems via RISC-V Instruction Set Extensions
    de Araujo Gewehr, Carlos Gabriel
    Moraes, Fernando Gehm
    2023 36TH SBC/SBMICRO/IEEE/ACM SYMPOSIUM ON INTEGRATED CIRCUITS AND SYSTEMS DESIGN, SBCCI, 2023, : 185 - 190
  • [8] Virtual Prototype driven Design, Implementation and Evaluation of RISC-V Instruction Set Extensions
    Funck, Milan
    Herdt, Vladimir
    Drechsler, Rolf
    2022 25TH INTERNATIONAL SYMPOSIUM ON DESIGN AND DIAGNOSTICS OF ELECTRONIC CIRCUITS AND SYSTEMS (DDECS), 2022, : 14 - 19
  • [9] Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms
    Nisanci, Gorkem
    Flikkema, Paul G.
    Yalcin, Tolga
    CRYPTOGRAPHY, 2022, 6 (03)
  • [10] RISC-V Extension for Lightweight Cryptography
    Tehrani, Etienne
    Graba, Tarik
    Merabet, Abdelmalek Si
    Danger, Jean-Luc
    2020 23RD EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD 2020), 2020, : 222 - 228