diff options
author | tb <> | 2021-04-20 17:16:38 +0000 |
---|---|---|
committer | tb <> | 2021-04-20 17:16:38 +0000 |
commit | 67e97261c2453d56f2a373d1f3023d6538995dd5 (patch) | |
tree | 5887c8db20a9739a2d144ce6d009f6f18b6f49f1 /src/lib/libcrypto/ec/ec2_oct.c | |
parent | 3b87dc9794809a607c59f25dd5d25a8dd1b9e453 (diff) | |
download | openbsd-67e97261c2453d56f2a373d1f3023d6538995dd5.tar.gz openbsd-67e97261c2453d56f2a373d1f3023d6538995dd5.tar.bz2 openbsd-67e97261c2453d56f2a373d1f3023d6538995dd5.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/ec2_oct.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec2_oct.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec2_oct.c b/src/lib/libcrypto/ec/ec2_oct.c index 9cd1dddfa1..28eb7a01b6 100644 --- a/src/lib/libcrypto/ec/ec2_oct.c +++ b/src/lib/libcrypto/ec/ec2_oct.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec2_oct.c,v 1.13 2021/04/19 17:06:37 tb Exp $ */ | 1 | /* $OpenBSD: ec2_oct.c,v 1.14 2021/04/20 17:16:37 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -152,7 +152,7 @@ ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point | |||
152 | } | 152 | } |
153 | } | 153 | } |
154 | 154 | ||
155 | if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx)) | 155 | if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) |
156 | goto err; | 156 | goto err; |
157 | 157 | ||
158 | ret = 1; | 158 | ret = 1; |
@@ -221,7 +221,7 @@ ec_GF2m_simple_point2oct(const EC_GROUP *group, const EC_POINT *point, | |||
221 | if ((yxi = BN_CTX_get(ctx)) == NULL) | 221 | if ((yxi = BN_CTX_get(ctx)) == NULL) |
222 | goto err; | 222 | goto err; |
223 | 223 | ||
224 | if (!EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx)) | 224 | if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx)) |
225 | goto err; | 225 | goto err; |
226 | 226 | ||
227 | buf[0] = form; | 227 | buf[0] = form; |
@@ -400,10 +400,10 @@ ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point, | |||
400 | } | 400 | } |
401 | } | 401 | } |
402 | /* | 402 | /* |
403 | * EC_POINT_set_affine_coordinates_GF2m checks that the | 403 | * EC_POINT_set_affine_coordinates checks that the |
404 | * point is on the curve as required by X9.62. | 404 | * point is on the curve as required by X9.62. |
405 | */ | 405 | */ |
406 | if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx)) | 406 | if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) |
407 | goto err; | 407 | goto err; |
408 | } | 408 | } |
409 | 409 | ||