arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.02893cs.CR
收藏

OSKR/OKAI:基于模块格的关键封装机制的系统优化

OSKR/OKAI: Systematic Optimization of Key Encapsulation Mechanisms from Module Lattice

Shiyu Shen, Feng He, Zhichuang Liang, Yang Wang, Yunlei Zhao

摘要:

本文对基于模块带错学习(MLWE)的密钥封装机制(KEM)进行了\emph{systematic}优化,包括算法设计、数论变换(NTT)的基本运算、扩展封装密钥大小的方法以及优化的实现编码。我们专注于Kyber(现在是NIST PQC标准化的第三轮决赛选手)和Aigis(在PKC 2020上提出的Kyber变体)。通过仔细分析,我们首先观察到Kyber和Aigis的算法设计可以通过\cite{JZ16,JZ19}中提出的带噪声的非对称密钥协商(AKCN)机制来优化。具体来说,可以使用AKCN简化解密过程,从而实现更快且更不易出错的解密过程。此外,基于AKCN的优化版本与实际部署的Kyber/Aigis具有完美的兼容性,因为它们可以在相同的参数,相同的公钥和相同的加密过程上运行。本文系统地研究了近年来为扩展NTT的适用范围而提出的各种NTT变体,具体分析了它们的精确计算复杂性,特别是证明了它们的等价性。然后,我们提出了一个新的变种命名为混合NTT(H-NTT),结合现有的NTT方法的优点,并推导出它的最优性在计算复杂性。H-NTT技术不仅具有更大的适用范围,而且允许NTT操作的模块化和统一的实现代码,即使具有不同的模块尺寸。我们分析和比较了不同的方法来扩大要封装的密钥的大小(具体地说,512位密钥的尺寸为1024),并得出最经济的方法。为了缓解实现中的兼容性问题,我们采用了建议的H-NTT方法。

英文摘要:

In this work, we make \emph{systematic} optimizations of key encapsulation mechanisms (KEM) based on module learning-with-errors (MLWE), covering algorithmic design, fundamental operation of number-theoretic transform (NTT), approaches to expanding encapsulated key size, and optimized implementation coding. We focus on Kyber (now in the Round-3 finalist of NIST PQC standardization) and Aigis (a variant of Kyber proposed at PKC 2020). By careful analysis, we first observe that the algorithmic design of Kyber and Aigis can be optimized by the mechanism of asymmetric key consensus with noise (AKCN) proposed in \cite{JZ16,JZ19}. Specifically, the decryption process can be simplified with AKCN, leading to a both faster and less error-prone decryption process. Moreover, the AKCN-based optimized version has perfect compatibility with the deployment of Kyber/Aigis in reality, as they can run on the same parameters, the same public key, and the same encryption process. We make a systematic study of the variants of NTT proposed in recent years for extending its applicability scope, make concrete analysis of their exact computational complexity, and in particular show their equivalence. We then present a new variant named hybrid-NTT (H-NTT), combining the advantages of existing NTT methods, and derive its optimality in computational complexity. The H-NTT technique not only has larger applicability scope but also allows for modular and unified implementation codes of NTT operations even with varying module dimensions. We analyze and compare the different approaches to expand the size of key to be encapsulated (specifically, 512-bit key for dimension of 1024), and conclude with the most economic approach. To mitigate the compatibility issue in implementations we adopt the proposed H-NTT method.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑