mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-28 05:06:18 +08:00
internal/sm2ec: align error message
This commit is contained in:
parent
58d30f6655
commit
cad90f95ec
@ -131,7 +131,7 @@ func sm2p256CheckOnCurve(x, y *fiat.SM2P256Element) error {
|
||||
rhs := sm2p256Polynomial(new(fiat.SM2P256Element), x)
|
||||
lhs := new(fiat.SM2P256Element).Square(y)
|
||||
if rhs.Equal(lhs) != 1 {
|
||||
return errors.New("SM2P256 point not on curve")
|
||||
return errors.New("point not on SM2 P256 curve")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user