Elliptic curve parameters of State secret algorithm

Source: Internet
Author: User


#设置默认椭圆曲线参数 (P A B N Gx Gy H), set it to state the recommended elliptic curve parameter.

#通过改写sm2_p, Sm2_a, Sm2_b, Sm2_n, SM2_GX, Sm2_gy, Sm2_h, you can set the elliptic curve parameters in your own script.
#
#参数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


Elliptic curve cryptography tool Ecctool v1.05 developed by the Snow Forum Readyu. For more information see:http://bbs.pediy.com/showthread.php?t=152615




SM2 configuration file:

<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>


text/Shing original Reprint Please specify the source http://blog.csdn.net/yxstars/article/details/40790333


Elliptic curve parameters of State secret algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.