IACR Transactions on Cryptographic Hardware and Embedded Systems · 2021 · 207 citations · 16 references
ComputingComputer EngineeringComputer ScienceCryptographyField-programmable Gate ArraysQuantum ComputingCryptographic ArchitectureCryptographic Protocol DesignKey Exchange ProtocolsPost-quantum CryptographyQuantum CryptographyQuantum Hardware ArchitecturesCrystals-kyberHardware ResourcesHardware-software Co-optimizationLearning With ErrorsMemory Footprint ReductionPost-quantum Cryptographic ProtocolsPost-quantum Cryptography StandardizationPost-quantum Key Exchange
Post‑quantum cryptography must be ready before quantum computers become practical, prompting NIST’s 2016 standardization contest and a surge of software‑only and hardware‑software co‑design studies. This work proposes a dedicated, standalone FPGA implementation of the CRYSTALS‑KYBER key‑exchange protocol to demonstrate its intrinsic properties and improve performance. The design implements the MLWE‑based KEM on a Xilinx Artix‑7, detailing encode/decode, a tweaked Fujisaki‑Okamoto transform, memory‑footprint minimization, and scheduled sampling and NTT computations. The FPGA achieves CCA‑secure Kyber across all module sizes on the smallest Artix‑7 device, with cycle counts of 3768/5079/6668 (k=2), 6316/7925/10049 (k=3), and 9380/11321/13908 (k=4), using 7412/6785 LUTs, 4644/3981 FFs, 2126/1899 slices, 2/2 DSPs, 3/3 BRAMs, and a 6.2/6.0 ns critical path, outperforming HLS and co‑design approaches.
Post-quantum cryptosystems should be prepared before the advent of powerful quantum computers to ensure information secure in our daily life. In 2016 a post-quantum standardization contest was launched by National Institute of Standards and Technology (NIST), and there have been lots of works concentrating on evaluation of these candidate protocols, mainly in pure software or through hardware-software co-design methodology on different platforms. As the contest progresses to third round in July 2020 with only 7 finalists and 8 alternate candidates remained, more dedicated and specific hardware designs should be considered to illustrate the intrinsic property of a certain protocol and achieve better performance. To this end, we present a standalone hardware design of CRYSTALS-KYBER, amodule learning-with-errors (MLWE) based key exchange mechanism (KEM) protocol within the 7 finalists on FPGA platform. Through elaborate scheduling of sampling and number theoretic transform (NTT) related calculations, decent performance is achieved with limited hardware resources. The way that Encode/Decode and the tweaked Fujisaki-Okamoto transform are implemented is demonstrated in detail. Analysis about minimizing memory footprint is also given out. In summary, we realize the adaptive chosen ciphertext attack (CCA) secure Kyber with all selectable module dimension k on the smallest Xilinx Artix-7 device. Our design computes key-generation, encapsulation (encryption) and decapsulation (decryption and reencryption) phase in 3768/5079/6668 cycles when k = 2, 6316/7925/10049 cycles when k = 3, and 9380/11321/13908 cycles when k = 4, consuming 7412/6785 LUTs, 4644/3981 FFs, 2126/1899 slices, 2/2 DSPs and 3/3 BRAMs in server/client with 6.2/6.0 ns critical path delay, outperforming corresponding high level synthesis (HLS) based designs or hardware-software co-designs to a large extent.
16
Algorithms for quantum computation: discrete logarithms and factoring
Peter W. Shor · 2002 · 8.5K citations
Computing, Computer Science, Physics +12