diff options
| author | tb <> | 2021-04-20 17:16:38 +0000 |
|---|---|---|
| committer | tb <> | 2021-04-20 17:16:38 +0000 |
| commit | d75ea39a8c50b617300b7a60e480697c35a01086 (patch) | |
| tree | 5887c8db20a9739a2d144ce6d009f6f18b6f49f1 /src/lib/libcrypto/ec/ecp_smpl.c | |
| parent | 33dd5ee78e17ec0f81f5a608ab0f31511df7d6b3 (diff) | |
| download | openbsd-d75ea39a8c50b617300b7a60e480697c35a01086.tar.gz openbsd-d75ea39a8c50b617300b7a60e480697c35a01086.tar.bz2 openbsd-d75ea39a8c50b617300b7a60e480697c35a01086.zip | |
Prepare to provide EC_POINT_{g,s}et_affine_coordinates
Similar to part of OpenSSL commit 8e3cced75fb5fee5da59ebef9605d403a999391b
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_smpl.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ecp_smpl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c index 3957bd154c..e1fd9007c7 100644 --- a/src/lib/libcrypto/ec/ecp_smpl.c +++ b/src/lib/libcrypto/ec/ecp_smpl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecp_smpl.c,v 1.29 2018/11/15 05:53:31 tb Exp $ */ | 1 | /* $OpenBSD: ecp_smpl.c,v 1.30 2021/04/20 17:16:38 tb Exp $ */ |
| 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
| 3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
| 4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
| @@ -1209,9 +1209,9 @@ ec_GFp_simple_make_affine(const EC_GROUP * group, EC_POINT * point, BN_CTX * ctx | |||
| 1209 | if ((y = BN_CTX_get(ctx)) == NULL) | 1209 | if ((y = BN_CTX_get(ctx)) == NULL) |
| 1210 | goto err; | 1210 | goto err; |
| 1211 | 1211 | ||
| 1212 | if (!EC_POINT_get_affine_coordinates_GFp(group, point, x, y, ctx)) | 1212 | if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx)) |
| 1213 | goto err; | 1213 | goto err; |
| 1214 | if (!EC_POINT_set_affine_coordinates_GFp(group, point, x, y, ctx)) | 1214 | if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) |
| 1215 | goto err; | 1215 | goto err; |
| 1216 | if (!point->Z_is_one) { | 1216 | if (!point->Z_is_one) { |
| 1217 | ECerror(ERR_R_INTERNAL_ERROR); | 1217 | ECerror(ERR_R_INTERNAL_ERROR); |
