mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
internal/sm2ec/fiat: fix error message
This commit is contained in:
parent
e8a847e005
commit
9ea8293d10
@ -81,7 +81,7 @@ func (e *SM2P256Element) SetBytes(v []byte) (*SM2P256Element, error) {
|
||||
var minusOneEncoding = new(SM2P256Element).Sub(
|
||||
new(SM2P256Element), new(SM2P256Element).One()).Bytes()
|
||||
if _subtle.ConstantTimeLessOrEqBytes(v, minusOneEncoding) == 0 {
|
||||
return nil, errors.New("invalid {{ .Element }} encoding")
|
||||
return nil, errors.New("invalid SM2P256Element encoding")
|
||||
}
|
||||
|
||||
var in [sm2p256ElementLen]byte
|
||||
|
Loading…
x
Reference in New Issue
Block a user