SDitH in Hardware
Sanjay Deshpande, James Howe, Jakub Szefer, and Dongze (Steven) Yue
CBCrypto
May 25, 2024
Motivation
Condor Image Source: IBM
Image Source: MIT Technology Review
2
NIST Post Quantum Cryptography Standardization Effort
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
SHA-3
CAESAR
Post-Quantum
(PQC-KEM+PQC-DSA)
Lightweight
69 Public Key Post-Quantum
Cryptography Schemes
➝ multiple winners
➝ further evaluation
56 Lightweight authenticated ciphers & hash functions
➝ 1 winner
57 authenticated ciphers
➝ multiple winners
Completed
In Progress
2007
2012
2013
2019
2016
2018
Year
TBD
51 hash functions
➝ one winner
23
2023
24
PQC
DSA
TBD
2022
40 Post-Quantum
Cryptography Digital
Signature Schemes
[Gaj20]
PQC-KEM: Post Quantum Cryptography-Key Encapsulation Mechanism
PQC-DSA: Post Quantum Cryptography-Digital Signature Algorithm
1
2
3
Outline
4
Introduction
SDitH Parameter Sets
6
SDitH Key Generation
ComputeS
Mat Vec
Mult and Add
Sampling Elements for ExpandH
Compute Q
Compute P
Sampling Elements
i_start
o_done
ExpandSeed
Variable time due to rejection sampling
Constant time
7
SDitH Sign
8
SDitH Sign - Offline
TREEPRG
Commit
Sampling
Hash1
ExapandSeed
2D
ExpandMPCChallenge
ComputePlainBroadCast
i_start
τ
τ
o_done
Constant time
9
SDitH Sign - Online
Constant time
Hash2
PartyComputation
τ x D
ExpandViewChallenge
GenerateSeedSiblingPath
τ
i_start
o_done
10
SDitH Verify
11
Hardware Design and Challenges
Hardware Design Architecture
13
Our Contributions
14
Syndrome Computation Module – Key Generation
ComputeS
Mat Vec
Mult and Add
Sampling Elements for ExpandH
Compute Q
Compute P
Sampling Elements
i_start
o_done
ExpandSeed
15
Syndrome Computation Module – Sign and Verify
GF256
GF251
16
Evaluate Module
r0, r1, r2
Modular
Multiplication
Pipeline Register
Stages
Control logic
i0, i1, i2
r0i0, r1i1, r2i2
17
Signature Generation Module
18
Comparison with Related and Relevant Work
Clock Cycles Comparison – Optimized Software v/s Our Hardware Implementation – Hypercube Variant
250x
3.4x
2.2x
Improvement
171x
2.1x
3.1x
Galois Field New Instructions from Intel are used
~70-99% of the clock cycles are taken in the ‘sign_online’ and ‘verify’ modules by the ‘Evaluate’ module
20
Time Comparison – Optimized Software v/s Our Hardware Implementation – Hypercube Variant
17.1x
0.21x
0.13x
Improvement
11.4x
0.13x
0.19x
~70-99% of the clock cycles are taken in the ‘sign_online’ and ‘verify’ modules by the ‘Evaluate’ module
Decline
Operating Frequency:
Intel Xeon Processor = 2.6 GHz
Xilinx Artix 7 FPGA = 164 MHz
21
Comparison with other PQC-DSA candidates – Security Level 1
Latest NIST
Competition
Candidates
Old NIST
Competition
Candidates
*No KeyGen
^Low Multiplication Complexity
22
Conclusion and Future Work
Conclusion
24
Future Work
25
References
[Gaj20] Kris Gaj, Implementation and Benchmarking of Round 2 Candidates in the NIST Post-Quantum Cryptography Standardization Process Using FPGAs, NIST Seminars, Oct 2020.
[BWM+23] Luke Beckwith, Robert Wallace, Kamyar Mohajerani, and Kris Gaj. A high-performance hardware implementation of the less digital signature scheme. In Thomas Johansson and Daniel Smith-Tone, editors, Post-Quantum Cryptography, pages 57–90, Cham, 2023. Springer Nature Switzerland.
[KRR+20] Daniel Kales, Sebastian Ramacher, Christian Rechberger, Roman Walch, and Mario Werner. Efficient FPGA implementations of lowmc and picnic. In Stanislaw Jarecki, editor, Topics in Cryptology – CT-RSA 2020, pages 417–441, Cham, 2020. Springer International Publishing.
[ZZW+23] Cankun Zhao, Neng Zhang, Hanning Wang, Bohan Yang, Wenping Zhu, Zhengdong Li, Min Zhu, Shouyi Yin, Shaojun Wei, and Leibo Liu. A compact and high-performance hardware architecture for CRYSTALS-Dilithium. IACR Transactions on Cryptographic Hardware and Embedded Systems,2022(1):270–295, Nov. 2021.
[ALC+20] Dorian Amiet, Lukas Leuenberger, Andreas Curiger, and Paul Zbinden. Fpga-based sphincs+ implementations: Mind the glitch. In 2020 23rd Euromicro Conference on Digital System Design (DSD), pages 229–237, 2020.
26
Thank you!
Sanjay Deshpande, James Howe, Jakub Szefer, and Dongze Yue, "SDitH in Hardware", in Transactions on Cryptographic Hardware and Embedded Systems (TCHES), September 2024.
Sanjay Deshpande
email: sanjay.deshpande@yale.edu