mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
sm9: fix compile error
This commit is contained in:
parent
7ebdf00640
commit
4a21345e72
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user