sm9: fix compile error

This commit is contained in:
Sun Yimin 2022-08-25 12:58:02 +08:00 committed by GitHub
parent 7ebdf00640
commit 4a21345e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) { 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) q := pub.GenerateUserPublicKey(uid, hid)
var r *big.Int var r *big.Int
var ok bool
for { for {
r, err = randFieldElement(rand) r, err = randFieldElement(rand)
if err != nil { if err != nil {