mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
修复错误判断
This commit is contained in:
@@ -1127,7 +1127,7 @@ int sm2_point_from_x(SM2_POINT *P, const uint8_t x[32], int y)
|
|||||||
sm2_bn_clean(_g);
|
sm2_bn_clean(_g);
|
||||||
sm2_bn_clean(_z);
|
sm2_bn_clean(_z);
|
||||||
|
|
||||||
if (!sm2_point_is_on_curve(P)) {
|
if (sm2_point_is_on_curve(P) != 1) {
|
||||||
error_print();
|
error_print();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user