The key encapsulation mechanism Edon-K was proposed in response to the call for post-quantum cryptography standardization issued by the National Institute of Standards and Technologies (NIST). This scheme is inspired by the McEliece scheme but uses another family of codes defined over $\mathbb{F}_{2^{128}}$ instead of $\mathbb{F}_2$ and is not based on the Hamming metric. It allows significantly shorter public keys than the McEliece scheme. In this paper, we give a polynomial time algorithm that recovers the encapsulated secret. This attack makes the scheme insecure for the intended use. We obtain this result by observing that recovering the error in the McEliece scheme corresponding to Edon-K can be viewed as a decoding problem for the rank-metric. We show that the code used in Edon-K is in fact a super-code of a Low Rank Parity Check (LRPC) code of very small rank (1 or 2). A suitable parity-check matrix for the super-code of such low rank can be easily derived from for the public key. We then use this parity-check matrix in a decoding algorithm that was devised for LRPC codes to recover the error. Finally we explain how we decapsulate the secret once we have found the error.
PQC standards alternatives -- reliable semantically secure key encapsulation mechanism and digital signature protocols using the rank-deficient matrix power function
Economic Science School, School of Exact and Natural Sciences and Engineering School, University of Buenos Aires(布宜诺斯艾利斯大学经济科学学院、精确与自然科学与工程学院);Computer Science Department, School of Exact and Natural Sciences, University of Buenos Aires(布宜诺斯艾利斯大学精确与自然科学学院计算机科学系)
Low Rank Parity Check Codes: New Decoding Algorithms and Applications to Cryptography
介绍了一类新的秩度量码:低秩奇偶检验码(LRPC),并提出了一种有效的概率译码算法。这一系列的代码可以被看作是等价的经典LDPC码的秩度量。然后,我们使用这些代码来设计密码系统à la McEliece:更准确地说,我们提出了两个方案的密钥封装机制(KEM)和公钥加密(PKE)。与先前的加密算法中使用的秩度量码(特别是Gabidulin码)不同,LRPC码具有非常弱的代数结构。我们的密码系统可以被看作是一个等价的NTRU密码系统(也是最近的MDPC \cite{MTSB12}密码系统)在秩度量的上下文中。本文件是一个扩展版本的文章介绍LRPC代码,具有重要的新贡献。我们已经改进了解码器,这要归功于一种新的方法,该方法允许对更高秩权重的错误进行解码,即,当先前的解码算法仅解码高达$\frac{n-k}{2}$的错误时,高达$\frac{2}{3}(n-k)$的错误。因此,我们的代码优于经典的Gabidulin码解码器,处理的权重高达$\frac{n-k}{2}$。这是以概率解码为代价的,但是解码错误概率可以任意小。该方法还可以用来降低已有方案的译码错误率,特别适用于密码学领域。最后,我们引入理想秩码,它推广了双循环秩码,使我们能够避免已知的基于折叠的结构攻击。最后,我们提出了不同的参数大小为我们的计划,我们得到了一个公钥的3337位的密钥交换和5893位的公钥加密,都为128位的安全…