From 4a21345e72aaf7ee4174209466bc602c440a089c Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 25 Aug 2022 12:58:02 +0800 Subject: [PATCH] sm9: fix compile error --- sm9/sm9.go | 1 - 1 file changed, 1 deletion(-) diff --git a/sm9/sm9.go b/sm9/sm9.go index 829ed3d..9005164 100644 --- a/sm9/sm9.go +++ b/sm9/sm9.go @@ -211,7 +211,6 @@ func (pub *SignMasterPublicKey) Verify(uid []byte, hid byte, hash, sig []byte) b func WrapKey(rand io.Reader, pub *EncryptMasterPublicKey, uid []byte, hid byte, kLen int) (key []byte, cipher *bn256.G1, err error) { q := pub.GenerateUserPublicKey(uid, hid) var r *big.Int - var ok bool for { r, err = randFieldElement(rand) if err != nil {