Skip to content

Commit

Permalink
修复错误判断
Browse files Browse the repository at this point in the history
  • Loading branch information
yetsing authored Apr 25, 2023
1 parent 91a2091 commit 40331e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sm2_alg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(_z);

if (!sm2_point_is_on_curve(P)) {
if (sm2_point_is_on_curve(P) != 1) {
error_print();
return -1;
}
Expand Down

0 comments on commit 40331e3

Please sign in to comment.