summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec2_oct.c
diff options
context:
space:
mode:
authortb <>2021-04-20 17:32:57 +0000
committertb <>2021-04-20 17:32:57 +0000
commite3bdd39cc031d39a8ea071c9a8ecea5b6a958967 (patch)
treeb19c2d7871b27d3b2f6ce519613278cb8c4140a5 /src/lib/libcrypto/ec/ec2_oct.c
parent5ac32b17def2bf66d2e60cc7866c946a98c4a411 (diff)
downloadopenbsd-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/ec2_oct.c')
-rw-r--r--src/lib/libcrypto/ec/ec2_oct.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec2_oct.c b/src/lib/libcrypto/ec/ec2_oct.c
index 28eb7a01b6..ad38991471 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.14 2021/04/20 17:16:37 tb Exp $ */ 1/* $OpenBSD: ec2_oct.c,v 1.15 2021/04/20 17:32:57 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -366,10 +366,10 @@ ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
366 } 366 }
367 if (form == POINT_CONVERSION_COMPRESSED) { 367 if (form == POINT_CONVERSION_COMPRESSED) {
368 /* 368 /*
369 * EC_POINT_set_compressed_coordinates_GF2m checks that the 369 * EC_POINT_set_compressed_coordinates checks that the
370 * point is on the curve as required by X9.62. 370 * point is on the curve as required by X9.62.
371 */ 371 */
372 if (!EC_POINT_set_compressed_coordinates_GF2m(group, point, x, y_bit, ctx)) 372 if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx))
373 goto err; 373 goto err;
374 } else { 374 } else {
375 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) 375 if (!BN_bin2bn(buf + 1 + field_len, field_len, y))