Documentation ¶
Index ¶
- func DerDecode(der []byte) [2]*big.Int
- func DerEncode(R, S big.Int) []byte
- func GenSM2PrivateKey(hexD, hexX, hexY string) (sm2.PrivateKey, error)
- func GenSM2PublicKey(hexX, hexY string) (sm2.PublicKey, error)
- func SM2Sign(priKey *sm2.PrivateKey, data, uid []byte) (string, error)
- func SM2Verify(pubKey *sm2.PublicKey, data, uid, sign []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenSM2PrivateKey ¶
func GenSM2PrivateKey(hexD, hexX, hexY string) (sm2.PrivateKey, error)
GenSM2PrivateKey 根据提供的公钥十六进制编码X Y, 私钥十六进制编码D,生成SM2私钥
hexD 私钥D的十六进制编码
hexX 公钥X的十六进制编码
hexY 公钥Y的十六进制编码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.