国密SM2密码算法的C语言实现

2017-10-22 21:45邢维哲
中国新通信 2017年18期

邢维哲

【摘要】 N.Koblitz和V.Miller在1985年各自獨立地提出将椭圆曲线应用于公钥密码系统。SM2椭圆曲线密码算法是国家密码管理局批准的一组算法,在电力自动化通讯中得到了广泛应用。本文介绍了SM2椭圆曲线公钥密码算法和加密解密算法中一部分过程的C语言实现。

【关键词】 椭圆曲线 SM2 密码算法 公钥 加密解密

Implementation of Public Key Cryptographic Algorithm SM2 based on C language XINGWEIZHE (1. XINGWEIZHE COLLEGE OF ENGINEERING, PEKING UNIVERSITY,BEIJING,100871)

Abstract: Applying elliptic curves on public key cryptosystem was put forward independently by Koblitz and V.Miller in 1985. Public Key Cryptographic Algorithm SM2 is Public Key Cryptographic Algorithm SM2, as the Chinese national cryptographic standard, is widely used in communications of automation system. This paper introduces elliptic curve cryptosystem and gives an implementation based on C language.

Key word: elliptic curve cryptosystem; Public Key Cryptographic Algorithm SM2; elliptic curveendprint