Cryptanalysis of a Type of White-Box Implementations of the SM4 Block Cipher

Jiqiang Lu, Jingyu Li

IACR Cryptology ePrint Archive(2021)

引用 0|浏览0
暂无评分
摘要
The SM4 block cipher was first released in 2006 as SMS4 used in the Chinese national standard WAPI, and became a Chinese national standard in 2016 and an ISO international standard in 2021. White-box cryptography aims primarily to protect the secret key used in a cryptographic software implementation in the white-box scenario that assumes an attacker to have full access to the execution environment and execution details of an implementation. Since white-box cryptography has many real-life applications nowadays, a few white-box implementations of the SM4 block cipher has been proposed with its increasingly wide use, among which a type of constructions is dominated, that use an affine diagonal block encoding to protect the original XOR sum of the three branches entering the S-box layer of a round and use its inverse to protect the original input of the S-box layer, such as Xiao and Lai’s implementation in 2009, Shang’s implementation in 2016 and Yao and Chen’s implementation in 2020. In this paper, we show that this type of white-box SM4 constructions can be somewhat equivalent to a plain implementation mostly with Boolean masks from a security viewpoint, by devising collision-based attacks on Xiao and Lai’s, Shang’s and Yao and Chen’s implementations with a time complexity of respectively about 2, 2 and 2 to peel off most white-box operations until only Boolean masks remain. Besides, we present a collision-based attack on a whitebox SM4 implementation with a time complexity of about 2 to recover an original round key, which uses a linear diagonal block encoding instead of an affine diagonal block encoding. Our results show that generating such a white-box SM4 implementation with affine encodings can be simplified into generating a plain implementation with Boolean masks (if its security expectation is beyond the above-mentioned complexity), and the effect of an affine encoding is significantly better than the effect of a linear encoding in the sense of our cryptanalysis results.
更多
查看译文
关键词
cryptology, white-box cryptography, SM4 block cipher, collision attack
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要