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/ec_key.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 '')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_key.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_key.c b/src/lib/libcrypto/ec/ec_key.c index 1d0a03ac88..348156e680 100644 --- a/src/lib/libcrypto/ec/ec_key.c +++ b/src/lib/libcrypto/ec/ec_key.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_key.c,v 1.24 2019/01/19 01:12:48 tb Exp $ */ | 1 | /* $OpenBSD: ec_key.c,v 1.25 2021/04/20 17:16:37 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -408,19 +408,19 @@ EC_KEY_set_public_key_affine_coordinates(EC_KEY * key, BIGNUM * x, BIGNUM * y) | |||
| 408 | 408 | ||
| 409 | #ifndef OPENSSL_NO_EC2M | 409 | #ifndef OPENSSL_NO_EC2M |
| 410 | if (is_char_two) { | 410 | if (is_char_two) { |
| 411 | if (!EC_POINT_set_affine_coordinates_GF2m(key->group, point, | 411 | if (!EC_POINT_set_affine_coordinates(key->group, point, |
| 412 | x, y, ctx)) | 412 | x, y, ctx)) |
| 413 | goto err; | 413 | goto err; |
| 414 | if (!EC_POINT_get_affine_coordinates_GF2m(key->group, point, | 414 | if (!EC_POINT_get_affine_coordinates(key->group, point, |
| 415 | tx, ty, ctx)) | 415 | tx, ty, ctx)) |
| 416 | goto err; | 416 | goto err; |
| 417 | } else | 417 | } else |
| 418 | #endif | 418 | #endif |
| 419 | { | 419 | { |
| 420 | if (!EC_POINT_set_affine_coordinates_GFp(key->group, point, | 420 | if (!EC_POINT_set_affine_coordinates(key->group, point, |
| 421 | x, y, ctx)) | 421 | x, y, ctx)) |
| 422 | goto err; | 422 | goto err; |
| 423 | if (!EC_POINT_get_affine_coordinates_GFp(key->group, point, | 423 | if (!EC_POINT_get_affine_coordinates(key->group, point, |
| 424 | tx, ty, ctx)) | 424 | tx, ty, ctx)) |
| 425 | goto err; | 425 | goto err; |
| 426 | } | 426 | } |
