AES实现中近零相关性的平衡编码
Balanced Encoding of Near-Zero Correlation for an AES Implementation
AI总结:
本文针对AES内部编码实现易受统计分析的弱点,提出一种平衡编码技术,通过利用互补查找表集合最小化与密钥相关中间值的相关性,在不依赖运行时随机源的情况下提升安全性。
摘要:
功耗分析对密码算法的安全性构成重大威胁,因为它可以被利用来恢复密钥。虽然存在各种基于软件的对策来缓解这种非侵入式攻击,但它们通常涉及时间和空间约束之间的权衡。诸如掩码和混淆之类的技术虽然有效,但会显著影响执行速度,并严重依赖运行时随机数生成器。相反,分组密码的内部编码实现提供了一种不依赖运行时随机源的替代方法,但其缺点是需要大量内存空间来容纳查找表。内部编码通常用于白盒密码学,但它存在一个显著的安全局限性,即无法有效保护密钥免受统计分析。为了克服这一弱点,本文为AES实现引入了一种安全的内部编码方法。通过解决先前编码方法中漏洞的根本原因,我们提出了一种平衡编码技术,旨在最小化与密钥相关中间值的问题相关性。我们分析了与平衡编码相关的潜在弱点,并提出了一种利用互补查找表集合的方法。在这种方法中,查找表的大小约为512KB,查找次数为1,024次。这与非受保护的白盒AES-128实现的表大小相当,但只需一半的查找次数。通过采用这种方法,我们的目标是引入一种非掩码技术,以缓解当前内部编码AES实现中对统计分析的漏洞。
英文摘要:
Power analysis poses a significant threat to the security of cryptographic algorithms, as it can be leveraged to recover secret keys. While various software-based countermeasures exist to mitigate this non-invasive attack, they often involve a trade-off between time and space constraints. Techniques such as masking and shuffling, while effective, can noticeably impact execution speed and rely heavily on run-time random number generators. On the contrary, internally encoded implementations of block ciphers offer an alternative approach that does not rely on run-time random sources, but it comes with the drawback of requiring substantial memory space to accommodate lookup tables. Internal encoding, commonly employed in white-box cryptography, suffers from a significant security limitation as it does not effectively protect the secret key against statistical analysis. To overcome this weakness, this paper introduces a secure internal encoding method for an AES implementation. By addressing the root cause of vulnerabilities found in previous encoding methods, we propose a balanced encoding technique that aims to minimize the problematic correlation with key-dependent intermediate values. We analyze the potential weaknesses associated with the balanced encoding and present a method that utilizes complementary sets of lookup tables. In this approach, the size of the lookup tables is approximately 512KB, and the number of table lookups is 1,024. This is comparable to the table size of non-protected white-box AES-128 implementations, while requiring only half the number of lookups. By adopting this method, our aim is to introduce a non-masking technique that mitigates the vulnerability to statistical analysis present in current internally-encoded AES implementations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。