summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-11-01 18:00:16 +0000
committertb <>2024-11-01 18:00:16 +0000
commitd4ca6fa06f50f56e26012c7847abb219e21f3d1a (patch)
tree7232b317ab6f3ed9b792bfd9b2c3657ca924763b /src
parentb738db22fb51fab83f26e9bf9e64a8558e39ee9d (diff)
downloadopenbsd-d4ca6fa06f50f56e26012c7847abb219e21f3d1a.tar.gz
openbsd-d4ca6fa06f50f56e26012c7847abb219e21f3d1a.tar.bz2
openbsd-d4ca6fa06f50f56e26012c7847abb219e21f3d1a.zip
ec_asn1_test: set compressed coordinates for the "simple" generator
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ec/ec_asn1_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/ec/ec_asn1_test.c b/src/regress/lib/libcrypto/ec/ec_asn1_test.c
index 8b35bbaa80..00ea361996 100644
--- a/src/regress/lib/libcrypto/ec/ec_asn1_test.c
+++ b/src/regress/lib/libcrypto/ec/ec_asn1_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1_test.c,v 1.24 2024/11/01 17:08:46 tb Exp $ */ 1/* $OpenBSD: ec_asn1_test.c,v 1.25 2024/11/01 18:00:16 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2024 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2024 Theo Buehler <tb@openbsd.org>
@@ -288,8 +288,8 @@ ec_group_simple_from_builtin(const EC_GROUP *group, int nid, BN_CTX *ctx)
288 288
289 if ((simple_generator = EC_POINT_new(simple_group)) == NULL) 289 if ((simple_generator = EC_POINT_new(simple_group)) == NULL)
290 errx(1, "EC_POINT_new"); 290 errx(1, "EC_POINT_new");
291 if (!EC_POINT_set_affine_coordinates(simple_group, simple_generator, 291 if (!EC_POINT_set_compressed_coordinates(simple_group, simple_generator,
292 x, y, ctx)) 292 x, BN_is_odd(y), ctx))
293 errx(1, "EC_POINT_set_affine_coordinates"); 293 errx(1, "EC_POINT_set_affine_coordinates");
294 if (!EC_GROUP_set_generator(simple_group, simple_generator, order, 294 if (!EC_GROUP_set_generator(simple_group, simple_generator, order,
295 cofactor)) 295 cofactor))