emmansun / gmsm

ShangMi (SM) cipher suites for golang (Go语言商用密码软件)

Home Page:https://emmansun.github.io/gmsm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sm2: GenerateKey the private key d should be in [1, n-2]

emmansun opened this issue · comments

image

这是因为SM2的签名算法要对 d+1 求逆,如果d = n-1,显然0无法求逆。

Release in v0.24.1