diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-01 18:00:17 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-01 18:00:17 +0000 |
commit | c65f3bde4d013c965b8092180a77d71e61004c1f (patch) | |
tree | 638b959bb5f7e7317cb869b4b702592212c02aab /regress | |
parent | e5a412ec8d7f37a4473337bd109767eb80b35f35 (diff) |
ec_asn1_test: set compressed coordinates for the "simple" generator
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libcrypto/ec/ec_asn1_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/ec/ec_asn1_test.c b/regress/lib/libcrypto/ec/ec_asn1_test.c index 8b35bbaa80a..00ea3619969 100644 --- a/regress/lib/libcrypto/ec/ec_asn1_test.c +++ b/regress/lib/libcrypto/ec/ec_asn1_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_asn1_test.c,v 1.24 2024/11/01 17:08:46 tb Exp $ */ +/* $OpenBSD: ec_asn1_test.c,v 1.25 2024/11/01 18:00:16 tb Exp $ */ /* * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> * 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) if ((simple_generator = EC_POINT_new(simple_group)) == NULL) errx(1, "EC_POINT_new"); - if (!EC_POINT_set_affine_coordinates(simple_group, simple_generator, - x, y, ctx)) + if (!EC_POINT_set_compressed_coordinates(simple_group, simple_generator, + x, BN_is_odd(y), ctx)) errx(1, "EC_POINT_set_affine_coordinates"); if (!EC_GROUP_set_generator(simple_group, simple_generator, order, cofactor)) |