修复错误判断

This commit is contained in:
yesting
2023-04-26 00:02:15 +08:00
committed by GitHub
parent 5ca0d60781
commit 91a20916fa

View File

@@ -86,7 +86,7 @@ int sm2_key_set_public_key(SM2_KEY *key, const SM2_POINT *public_key)
error_print();
return -1;
}
if (!sm2_point_is_on_curve(public_key)) {
if (sm2_point_is_on_curve(public_key) != 1) {
error_print();
return -1;
}