diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_convert.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_convert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_convert.c b/src/lib/libcrypto/ec/ec_convert.c index 84641a4e72..3b88bd20ba 100644 --- a/src/lib/libcrypto/ec/ec_convert.c +++ b/src/lib/libcrypto/ec/ec_convert.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_convert.c,v 1.15 2025/05/10 05:54:38 tb Exp $ */ | 1 | /* $OpenBSD: ec_convert.c,v 1.16 2025/12/26 18:44:19 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -452,7 +452,7 @@ EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, | |||
| 452 | if (ctx == NULL) | 452 | if (ctx == NULL) |
| 453 | goto err; | 453 | goto err; |
| 454 | 454 | ||
| 455 | if (group->meth != point->meth) { | 455 | if (!ec_group_and_point_compatible(group, point)) { |
| 456 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); | 456 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); |
| 457 | goto err; | 457 | goto err; |
| 458 | } | 458 | } |
| @@ -478,7 +478,7 @@ EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, | |||
| 478 | if (ctx == NULL) | 478 | if (ctx == NULL) |
| 479 | goto err; | 479 | goto err; |
| 480 | 480 | ||
| 481 | if (group->meth != point->meth) { | 481 | if (!ec_group_and_point_compatible(group, point)) { |
| 482 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); | 482 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); |
| 483 | goto err; | 483 | goto err; |
| 484 | } | 484 | } |
