mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-09 07:23:56 +08:00
Add SM2 ZID support
This commit is contained in:
@@ -196,7 +196,9 @@ func main() {
|
||||
fmt.Println(sm2pkpem_)
|
||||
|
||||
/* SM2 sign/verification */
|
||||
sm2zid, _ := sm2pk.ComputeSM2IDDigest("1234567812345678")
|
||||
sm3ctx.Reset()
|
||||
sm3ctx.Update(sm2zid)
|
||||
sm3ctx.Update([]byte("message"))
|
||||
tbs, _ := sm3ctx.Final()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user