Skip to main content
QUICK REVIEW

[论文解读] Code-based Cryptography in IoT: A HW/SW Co-Design of HQC

Maximilian Schöffel, Johannes Feldmann|arXiv (Cornell University)|Jan 12, 2023
Cryptographic Implementations and SecurityComputer Science被引用 3
一句话总结

本文首次实现了基于代码的汉明准循环密钥封装机制(HQC)在ASIC和FPGA上的硬件实现,HQC是NIST后量子密码学标准化流程中的一个后量子密码原 primitive。通过结合软件优化、定制的RISC-V指令集扩展以及松耦合的硬件加速器,作者实现了与最先进的基于格的方案相当的能效和性能,证明了HQC在低功耗物联网应用中具有显著更低的硬件开销,是一种切实可行的替代方案。

ABSTRACT

Recent advances in quantum computing pose a serious threat on the security of widely used public-key cryptosystems. Thus, new post-quantum cryptographic algorithms have been proposed as part of the associated US NIST process to enable secure, encrypted communication in the age of quantum computing. Many hardware accelerators for structured lattice-based algorithms have already been published to meet the strict power, area and latency requirements of low-power IoT edge devices. However, the security of these algorithms is still uncertain. Currently, many new attacks against the lattice structure are investigated to judge on their security. In contrast, code-based algorithms, which rely on deeply explored security metrics and are appealing candidates in the NIST process, have not yet been investigated to the same depth in the context of IoT due to the computational complexity and memory footprint of state-of-the-art software implementations. In this paper, we present to the best of our knowledge the first HW/SW co-design based implementation of the code-based Hamming Quasi Cyclic Key-Encapsulation Mechanism. We profile and evaluate this algorithm in order to explore the trade-off between software optimizations, tightly coupled hardware acceleration by instruction set extension and modular, loosely coupled accelerators. We provide detailed results on the energy consumption and performance of our design and compare it to existing implementations of lattice- and code-based algorithms. The design was implemented in two technologies: FPGA and ASIC. Our results show that code-based algorithms are valid alternatives in low-power IoT from an implementation perspective.

研究动机与目标

  • 评估基于代码的后量子密码学,特别是HQC,在硬件效率至关重要的低功耗物联网环境中实现的可行性。
  • 通过探索软硬件协同设计策略,解决纯软件HQC实现中计算与内存开销过高的问题。
  • 将HQC的能量效率、延迟和资源利用率与当前最先进的基于格和基于代码的PQC方案进行比较。
  • 证明HQC可在硬件中以极低的面积与功耗实现,使其成为物联网部署的有力候选方案。

提出的方法

  • 作者开发了一款定制的RISC-V处理器,通过扩展指令集以加速HQC中频繁使用的操作,如有限域算术和纠错码运算。
  • 采用模块化设计实现核心HQC运算的松耦合硬件加速器,包括伴随矩阵计算和错误校正解码,以减少面积开销。
  • 对NIST参考实现的HQC应用了软件优化,重点包括循环展开、内存访问减少以及对RISC-V指令集的高效利用。
  • 系统针对FPGA(Xilinx Artix-7)和ASIC(22nm)技术进行了协同设计,以评估性能、面积和功耗之间的权衡。
  • 集成了基于DMA的数据传输机制,以减轻内存带宽压力并提升吞吐量。
  • 最终设计通过时钟周期数、功耗消耗和资源利用率等指标进行评估,并与现有的基于格和基于代码的实现进行了直接对比。

实验结果

研究问题

  • RQ1基于代码的后量子密码学,特别是HQC,是否可以通过软硬件协同设计在低功耗物联网设备中实现高效部署?
  • RQ2在能量、延迟和面积方面,软件优化、指令集扩展与专用硬件加速之间的最优权衡是什么?
  • RQ3在硬件加速的物联网系统中,HQC的能量效率和性能与最先进的基于格的密钥封装机制(如Kyber和NewHope)相比如何?
  • RQ4HQC是否可以在与基于格的方案相当的面积和功耗下实现,同时保持具有竞争力的性能和安全性?

主要发现

  • 所提出的软硬件协同设计将22nm ASIC上HQC密钥生成的时钟周期数降低至56k,封装操作为131k,解封装操作为557k(频率700 MHz),优于Cortex M4上的纯软件HQC实现。
  • ASIC实现中,密钥生成仅消耗1.02 μJ,封装消耗2.41 μJ,解封装消耗7.1 μJ,显著低于Cortex M4上纯软件HQC的500 μJ、1184 μJ和1872 μJ。
  • 该设计在性能上与低延迟HQC硬件实现相当,但LUT减少58%,寄存器减少85%,展现出更优的面积效率。
  • 尽管采用更小的工艺节点,与Kyber的ASIC实现相比,所提出的HQC设计在密钥生成阶段节省83%的功耗,封装阶段节省74%,解封装阶段节省37%。
  • 指令集扩展与模块化加速器的结合带来了可测量的性能提升,且面积开销极小,验证了协同设计方法的有效性。
  • FPGA原型在700 MHz下运行,使用8k LUT和2.4k寄存器,表明该设计具备可扩展性,适用于资源受限环境中的原型设计与部署。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。