Paper 2020/836

Assembly or Optimized C for Lightweight Cryptography on RISC-V?

Fabio Campos, Lars Jellema, Mauk Lemmen, Lars Müller, Daan Sprenkels, and Benoit Viguier

Abstract

A major challenge when applying cryptography on constrained environments is the trade-off between performance and security. In this work, we analyzed different strategies for the optimization of several candidates of NIST's lightweight cryptography standardization project on a RISC-V architecture. In particular, we studied the general impact of optimizing symmetric-key algorithms in assembly and in plain C. Furthermore, we present optimized implementations, achieving a speed-up of up to 81% over available implementations, and discuss general implementation strategies.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint. MINOR revision.
Keywords
implementationRISC-Vlightweight cryptographysoftware optimizationNIST
Contact author(s)
b viguier @ cs ru nl
campos @ sopmac de
d sprenkels @ cs ru nl
mail @ lars-mueller com
M Lemmen @ student ru nl
lars jellema @ gmail com
History
2020-07-12: received
Short URL
https://ia.cr/2020/836
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2020/836,
      author = {Fabio Campos and Lars Jellema and Mauk Lemmen and Lars Müller and Daan Sprenkels and Benoit Viguier},
      title = {Assembly or Optimized C for Lightweight Cryptography on RISC-V?},
      howpublished = {Cryptology ePrint Archive, Paper 2020/836},
      year = {2020},
      note = {\url{https://eprint.iacr.org/2020/836}},
      url = {https://eprint.iacr.org/2020/836}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.