Improving the Efficiency of Cryptography Algorithms on Resource-Constrained Embedded Systems via RISC-V Instruction Set Extensions

被引:3
|
作者
de Araujo Gewehr, Carlos Gabriel [1 ,2 ]
Moraes, Fernando Gehm [1 ]
机构
[1] Pontif Catholic Univ Rio Grande do Sul PUCRS, Sch Technol, Porto Alegre, Brazil
[2] EnSilica, Porto Alegre, Brazil
关键词
RISC-V; Instruction Set Extensions; Embedded Systems; Cryptography; Security; Hardware Acceleration;
D O I
10.1109/SBCCI60457.2023.10261964
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
This work presents the design and evaluation of RISC-V implementations of AES-128, AES-256, SHA-256, and SHA-512, both with and without specialized instructions from the Zkne and Zknh ISA extensions. In our evaluation, we use the Ibex implementation of the RISC-V ISA, a simple low-area 2-stage pipeline design, and the TinyCrypt library, a collection of low-overhead C implementations of widely employed cryptography algorithms. Several criteria relevant to low-complexity embedded systems are measured and compared, such as area costs for the hardware side; stack usage and code density for the software side; illustrating the trade-offs emerging from using specialized RISC-V instructions in the aforementioned algorithms. Clock cycle count gains of 42.57x, 44.81x, 1.45x and 1.74x were observed, as well as 4.16x, 4.16x, 1.58x and 1.63x gains in memory usage efficiency and 27.81x, 28.91x, 1.45x and 1.79x gains in energy efficiency, with an overhead of 10% in die area cost. The extended TinyCrypt library with hardware accelerated implementations and extended Ibex processor RTL are available open-source at https://github.com/cggewehr/RISCV- crypto.
引用
收藏
页码:185 / 190
页数:6
相关论文
共 20 条
  • [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] NLU-V: A Family of Instruction Set Extensions for Efficient Symmetric Cryptography on RISC-V
    Uzuner, Hakan
    Kavun, Elif Bilge
    CRYPTOGRAPHY, 2024, 8 (01)
  • [3] RISC-V Instruction Set Architecture Extensions: A Survey
    Cui, Enfang
    Li, Tianzheng
    Wei, Qian
    IEEE ACCESS, 2023, 11 : 24696 - 24711
  • [4] Hardware Acceleration of Authenticated Encryption with Associated Data via RISC-V Instruction Set Extensions in Low Power Embedded Systems
    Gewehr, Carlos
    Moura, Nicolas
    Luza, Lucas
    Bernardon, Eduardo
    Calazans, Ney
    Garibotti, Rafael
    Moraes, Fernando Gehm
    15TH IEEE LATIN AMERICAN SYMPOSIUM ON CIRCUITS AND SYSTEMS, LASCAS 2024, 2024, : 128 - 132
  • [5] 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
  • [6] RISC-V Resource-Constrained Cores: A Survey and Energy Comparison
    Elsadek, Islam
    Tawfik, Eslam Yahya
    2021 19TH IEEE INTERNATIONAL NEW CIRCUITS AND SYSTEMS CONFERENCE (NEWCAS), 2021,
  • [7] Hardware Acceleration of Crystals-Kyber in Low-Complexity Embedded Systems With RISC-V Instruction Set Extensions
    Gewehr, Carlos
    Luza, Lucas
    Moraes, Fernando Gehm
    IEEE ACCESS, 2024, 12 : 94477 - 94495
  • [8] Resource efficiency of instruction set extensions for elliptic curve cryptography
    Puttmann, Christoph
    Shokrollahi, Jamshid
    Porrmann, Mario
    PROCEEDINGS OF THE FIFTH INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: NEW GENERATIONS, 2008, : 131 - +
  • [9] Timing Speculation-Aware Instruction Set Extension for Resource-Constrained Embedded Systems
    Ahmed, Tanvir
    Hara-Azumi, Yuko
    PROCEEDINGS OF THE ASAP2015 2015 IEEE 26TH INTERNATIONAL CONFERENCE ON APPLICATION-SPECIFIC SYSTEMS, ARCHITECTURES AND PROCESSORS, 2015, : 30 - 34
  • [10] 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