diff options
author | tb <> | 2021-04-20 17:32:57 +0000 |
---|---|---|
committer | tb <> | 2021-04-20 17:32:57 +0000 |
commit | e3bdd39cc031d39a8ea071c9a8ecea5b6a958967 (patch) | |
tree | b19c2d7871b27d3b2f6ce519613278cb8c4140a5 /src/lib/libcrypto/ec/ecp_oct.c | |
parent | 5ac32b17def2bf66d2e60cc7866c946a98c4a411 (diff) | |
download | openbsd-e3bdd39cc031d39a8ea071c9a8ecea5b6a958967.tar.gz openbsd-e3bdd39cc031d39a8ea071c9a8ecea5b6a958967.tar.bz2 openbsd-e3bdd39cc031d39a8ea071c9a8ecea5b6a958967.zip |
Prepare to provide EC_POINT_set_compressed_coordinates
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_oct.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_oct.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ecp_oct.c b/src/lib/libcrypto/ec/ecp_oct.c index 901220483c..177bbe152e 100644 --- a/src/lib/libcrypto/ec/ecp_oct.c +++ b/src/lib/libcrypto/ec/ecp_oct.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_oct.c,v 1.13 2021/04/20 17:16:38 tb Exp $ */ | 1 | /* $OpenBSD: ecp_oct.c,v 1.14 2021/04/20 17:32:57 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. |
@@ -363,10 +363,10 @@ ec_GFp_simple_oct2point(const EC_GROUP * group, EC_POINT * point, | |||
363 | } | 363 | } |
364 | if (form == POINT_CONVERSION_COMPRESSED) { | 364 | if (form == POINT_CONVERSION_COMPRESSED) { |
365 | /* | 365 | /* |
366 | * EC_POINT_set_compressed_coordinates_GFp checks that the point | 366 | * EC_POINT_set_compressed_coordinates checks that the point |
367 | * is on the curve as required by X9.62. | 367 | * is on the curve as required by X9.62. |
368 | */ | 368 | */ |
369 | if (!EC_POINT_set_compressed_coordinates_GFp(group, point, x, y_bit, ctx)) | 369 | if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx)) |
370 | goto err; | 370 | goto err; |
371 | } else { | 371 | } else { |
372 | if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) | 372 | if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) |