Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms

被引:4
|
作者
Nisanci, Gorkem [1 ]
Flikkema, Paul G. [2 ]
Yalcin, Tolga [3 ]
机构
[1] Intel Corp, Chandler, AZ 85226 USA
[2] No Arizona Univ, Sch Informat Comp & Cyber Syst, Flagstaff, AZ 86011 USA
[3] Google LLC, San Diego, CA 92121 USA
关键词
RISC-V; cryptography; ISA;
D O I
10.3390/cryptography6030041
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The ever-increasing need for securing computing systems using cryptographic algorithms is spurring interest in the efficient implementation of common algorithms. While the algorithms can be implemented in software using base instruction sets, there is considerable potential to reduce memory cost and improve speed using specialized instructions and associated hardware. However, there is a need to assess the benefits and costs of software implementations and new instructions that implement key cryptographic algorithms in fewer cycles. The primary aim of this paper is to improve the understanding of the performance and cost of implementing cryptographic algorithms for the RISC-V instruction set architecture (ISA) in two cases: software implementations of the algorithms using the rv32i instruction set and using cryptographic instructions supported by dedicated hardware in additional functional units. For both cases, we describe a RISC-V processor with cryptography hardware extensions and hand-optimized RISC-V assembly language implementations of eleven cryptographic algorithms. Compared to implementations with only the rv32i instruction set, implementations with the cryptography set extension provide a 1.5x to 8.6x faster execution speed and 1.2x to 5.8x less program memory for five of the eleven algorithms. Based on our performance analyses, a new instruction is proposed to increase the implementation efficiency of the algorithms.
引用
收藏
页数:29
相关论文
共 50 条
  • [1] Performance Evaluation of Lightweight Cryptographic Algorithms on RISC-V
    Mumcu, Muhammet Cihat
    Cicek, Ihsan
    Bayar, Salih
    2022 30TH SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE, SIU, 2022,
  • [2] 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
  • [3] Efficient Cryptography on the RISC-V Architecture
    Stoffelen, Ko
    PROGRESS IN CRYPTOLOGY - LATINCRYPT 2019, 2019, 11774 : 323 - 340
  • [4] 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
  • [5] NLU-V: A Family of Instruction Set Extensions for Efficient Symmetric Cryptography on RISC-V
    Uzuner, Hakan
    Kavun, Elif Bilge
    CRYPTOGRAPHY, 2024, 8 (01)
  • [6] Assembly or Optimized C for Lightweight Cryptography on RISC-V?
    Campos, Fabio
    Jellema, Lars
    Lemmen, Mauk
    Mueller, Lars
    Sprenkels, Amber
    Viguier, Benoit
    CRYPTOLOGY AND NETWORK SECURITY, CANS 2020, 2020, 12579 : 526 - 545
  • [7] 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,
  • [8] Performance Left on the Table: An Evaluation of Compiler Autovectorization for RISC-V
    Adit, Neil
    Sampson, Adrian
    IEEE MICRO, 2022, 42 (05) : 41 - 48
  • [9] Support Post Quantum Cryptography with SIMD Everywhere on RISC-V Architectures
    Wang, Liang-Ni
    Li, Ju-Hung
    Kuan, Chi-Bang
    Su, Yi-Chiao
    53RD INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, ICPP 2024, 2024, : 23 - 32
  • [10] Improved Vectorization of OpenCV Algorithms for RISC-V CPUs
    Volokitin V.D.
    Vasiliev E.P.
    Kozinov E.A.
    Kustikova V.D.
    Liniov A.V.
    Rodimkov Y.A.
    Sysoyev A.V.
    Meyerov I.B.
    Lobachevskii Journal of Mathematics, 2024, 45 (1) : 130 - 142