SM2算法是中国国家密码管理局颁布的商用椭圆曲线公钥密码标准算法.传统密码算法通常存在安全漏洞,攻击者往往针对算法中的安全薄弱环节展开攻击,分析提取密钥,对密码系统和人们的财产安全构成很大威胁.功耗攻击是最常见的攻击方式,它具有较小密钥搜索空间及较高分析效率等诸多优点.功耗攻击利用密码算法运行过程中的功耗泄漏,采集功耗曲线分析恢复得到密钥.为有效抵抗功耗攻击,提高SM2算法安全性,参考国际椭圆曲线密码算法,将原子概念运用到SM2中,提出一种新型结构的原子算法.经理论分析,在运算量方面相比基本算法降低了27.4%,并且均低于已有的原子算法.经由SAKURA-G FPGA仿真验证结果表明,能够成功抵抗简单功耗攻击.
SM2algorithms are commercial elliptic curve public-key algorithms,which are released by Chinese Cryptography Administration and similar to ECC.Traditional cryptographic algorithms always have security flaws.Attackers often attack on security weaknesses of algorithms and analyze the secret-key,which poses great threat to cryptographic systems and peoples'property.There are various kinds of attacks,such as power attack,fault attack and electromagnetic attack.Among these attacks,power attack is the most traditional one,which has many advantages such as small secret-key searching space and high analysis efficiency.Usually,power attack utilizes the power leakage during operation processes of cryptographic algorithms,acquires power waves and retrieves the secret key.In order to resist power attack and enhance the security of SM2 algorithms,this article learns from elliptic curve cryptography algorithms,applies the atomic concept into SM2 and proposes a novel atomic algorithm.According to theoretical comparison between the proposed algorithm and other former algorithms,it shows that the proposed algorithm saves 27.4% of computation in comparison to double-and-add always algorithm.Besides,it has less computation amount than other atomic algorithms.Furthermore,implementation has been fulfilled on SAKURA-G FPGA board.Simulation results demonstrate that the proposed algorithm can resist simple power attack successfully.