sm2: typo

This commit is contained in:
Sun Yimin 2024-08-13 13:35:45 +08:00 committed by GitHub
parent 4517d00cc1
commit b7f95a5a9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -762,7 +762,7 @@ func RecoverPublicKeysFromSM2Signature(hash, sig []byte) ([]*ecdsa.PublicKey, er
pointRx = append(pointRx, s) pointRx = append(pointRx, s)
} }
pubs := make([]*ecdsa.PublicKey, 0, 4) pubs := make([]*ecdsa.PublicKey, 0, 4)
bytes := make([]byte, len(32)+1) bytes := make([]byte, 32+1)
compressFlags := []byte{compressed02, compressed03} compressFlags := []byte{compressed02, compressed03}
// Rx has one or two possible values, so point R has two or four possible values // Rx has one or two possible values, so point R has two or four possible values
for _, x := range pointRx { for _, x := range pointRx {