国密算法椭圆曲线参数


#设置默认椭圆曲线参数(P A B N Gx Gy H),将其设置为国密推荐椭圆曲线参数。

#通过改写sm2_p, sm2_a, sm2_b, sm2_n, sm2_gx, sm2_gy, sm2_h,可以在自己的脚本里随意设置椭圆曲线参数。
#
#参数P
set sm2_p FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF
#参数A
set sm2_a FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC
#参数B
set sm2_b 28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93
#参数N
set sm2_n FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123
#参数Xg
set sm2_gx 32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7
#参数Yg
set sm2_gy BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0
#参数h

set sm2_h 00000001


椭圆曲线密码学工具 ECCTooL v1.05由看雪论坛readyu开发。详细信息参看:http://bbs.pediy.com/showthread.php?t=152615




SM2配置文件:

<span style="font-family:Microsoft YaHei;">[CurveType]
GF(P)
[Base]
16
[GF(P) Curver Bits]
64
[EC2_m]
163
[EC2_a]
7
[EC2_b]
6
[EC2_c]
3
[S/LOW]
0
[H/HIGH]
0
[N/Point Num]

[A/a2]
FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC
[B/a6]
28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93
[P/Modules]
FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF
[Q/Order]

[K/Privkey]
00000000000000
[Gx/Base]
32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7
[Gy/Base]
BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0
[Rx/Pub]

[Ry/Pub]
</span>


文/yanxin8原创,获取更多信息请访问http://yanxin8.com/270.html


你可能感兴趣的:(国密算法椭圆曲线参数)