arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.08862cs.CR
收藏

基于字符串学的EChaCha20流密码密码分析

Stringology-Based Cryptanalysis for EChaCha20 Stream Cipher

University of Colorado Denver(科罗拉多大学丹佛分校)

Victor Kebande

AI总结:

本文基于字符串学方法分析EChaCha20流密码,研究其扩展状态矩阵和修改的Quarter-Round函数是否引入潜在的统计区分特性,评估其抗旋转差分攻击能力。

摘要:

基于字符串学的密码分析(SBC)提供了一种适合且结构对齐的方法,用于揭示流密码中传统统计测试难以检测的结构模式。尽管EChaCha20的设计改进,但尚未系统研究其扩展的6×6状态矩阵和修改的Quarter-Round函数(QR-F)是否引入细微的密钥流模式、旋转偏置或部分碰撞,这些可能成为统计区分器。因此,本文利用Knuth-Morris-Pratt(KMP)和Boyer-Moore(BM)算法分析EChaCha20,这是一种具有扩展6×6状态矩阵和增强QR-F的ChaCha20变种。作者开发并优化了KMP和BM算法的32位字级模式分析适应性,并利用它们研究m位模式频率分布,以评估EChaCha20对旋转差分攻击的抗性。在大规模一百万密钥流数据集上的实验结果证实,EChaCha20在16位和32位级别能够维持强伪随机性,在8位域中观察到轻微的不规则性。此外,差分测试显示了快速扩散,经过两轮QR-F后表现出雪崩效应,且在评估范围内未观察到显著的旋转碰撞,与预期的ARX扩散行为一致,超过3轮后。本文提出SBC作为ARX密码评估的补充工具,并为EChaCha20的安全性属性提供了新思路。

英文摘要:

Stringology-Based Cryptanalysis (SBC) offers a suitable and a structurally aligned approach for uncovering structural patterns in stream ciphers that traditional statistical tests may often fail to detect. Despite \texttt{EChaCha20}'s design enhancements, no systematic investigation has been performed to determine whether its expanded 6$\times$6 state matrix and modified Quarter-Round Function (\texttt{QR-F}) introduce subtle keystream patterns, rotational biases, or partial collisions that could serve as statistical distinguishers. As such, addressing this gap is critical to ensure that the cipher's modifications do not unintentionally reduce its security margin. Therefore, this paper leverages Knuth-Morris-Pratt (\texttt{KMP}) and Boyer-Moore (\texttt{BM}) algorithms to analyze \texttt{EChaCha20}, which is a variant of ChaCha20 that features an expanded 6$\times$6 state matrix and an enhanced \texttt{QR-F}. The author has developed and optimized adaptations of the \texttt{KMP} and \texttt{BM} algorithms for 32-bit word level pattern analysis and employed them to investigate $m$-bit pattern frequency distributions to assess the \texttt{EChaCha20}'s resistance of rotational-differential attacks. Our experimental results on large-scale one million keystream datasets have confirmed that \texttt{EChaCha20} is able to maintain strong pseudorandomness at 16-bit and 32-bit levels with minor irregularities observed in the 8-bit domain. In addition to these, the differential tests have indicated a rapid diffusion, exhibiting an avalanche effect after two \texttt{QR-F} rounds and no statistically significant rotational collisions were observed within the evaluated bounds, consistent with expected ARX diffusion behavior beyond 3 rounds. This work puts forward SBC as a complementary tool for ARX cipher evaluation and provide new thoughts on the security properties of \texttt{EChaCha20}.

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

↑