An implementation of SM4 algorithm based on mask
Xinchao Li · Journal of Physics Conference Series · 2020
Abstract Aiming at the problem of SM4 algorithm resisting power attack, this paper studies the implementation structure and S-box characteristics of SM4 algorithm, constructs the S-box realized by multiplication mask, and designs a semi random mask circuit implementation scheme of SM4 algorithm. In this scheme, the middle values of the first six rounds and the last six rounds of SM4 algorithm are completely random masked, and the intermediate values of the middle 24 rounds are fixed mask, which reduces the consumption of random masks. After security analysis, the scheme can resist the first-order power consumption attack, and has less random number consumption and lower implementation area.