Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms
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...
Main Authors: | , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2022-08-01
|
Series: | Cryptography |
Subjects: | |
Online Access: | https://www.mdpi.com/2410-387X/6/3/41 |
_version_ | 1797489706733142016 |
---|---|
author | Görkem Nişancı Paul G. Flikkema Tolga Yalçın |
author_facet | Görkem Nişancı Paul G. Flikkema Tolga Yalçın |
author_sort | Görkem Nişancı |
collection | DOAJ |
description | 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.5× to 8.6× faster execution speed and 1.2× to 5.8× 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. |
first_indexed | 2024-03-10T00:20:29Z |
format | Article |
id | doaj.art-0fa78d730e254d4ca4b8d4eafb97e021 |
institution | Directory Open Access Journal |
issn | 2410-387X |
language | English |
last_indexed | 2024-03-10T00:20:29Z |
publishDate | 2022-08-01 |
publisher | MDPI AG |
record_format | Article |
series | Cryptography |
spelling | doaj.art-0fa78d730e254d4ca4b8d4eafb97e0212023-11-23T15:42:34ZengMDPI AGCryptography2410-387X2022-08-01634110.3390/cryptography6030041Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized AlgorithmsGörkem Nişancı0Paul G. Flikkema1Tolga Yalçın2Intel Corporation, Chandler, AZ 85226, USASchool of Informatics, Computing and Cyber Systems, Northern Arizona University, Flagstaff, AZ 86011, USAGoogle LLC, San Diego, CA 92121, USAThe 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.5× to 8.6× faster execution speed and 1.2× to 5.8× 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.https://www.mdpi.com/2410-387X/6/3/41RISC-VcryptographyISA |
spellingShingle | Görkem Nişancı Paul G. Flikkema Tolga Yalçın Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms Cryptography RISC-V cryptography ISA |
title | Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms |
title_full | Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms |
title_fullStr | Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms |
title_full_unstemmed | Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms |
title_short | Symmetric Cryptography on RISC-V: Performance Evaluation of Standardized Algorithms |
title_sort | symmetric cryptography on risc v performance evaluation of standardized algorithms |
topic | RISC-V cryptography ISA |
url | https://www.mdpi.com/2410-387X/6/3/41 |
work_keys_str_mv | AT gorkemnisancı symmetriccryptographyonriscvperformanceevaluationofstandardizedalgorithms AT paulgflikkema symmetriccryptographyonriscvperformanceevaluationofstandardizedalgorithms AT tolgayalcın symmetriccryptographyonriscvperformanceevaluationofstandardizedalgorithms |