From d11f92ed77a84750d747201a5ebdf6e31f5d11e7 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 16 Oct 2024 23:58:25 +0000 Subject: EC ASN.1: add reminder that the simple method might also want testing --- src/regress/lib/libcrypto/ec/ec_asn1_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/regress/lib/libcrypto/ec/ec_asn1_test.c b/src/regress/lib/libcrypto/ec/ec_asn1_test.c index cc0f0f46f4..171014bda7 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 @@ -/* $OpenBSD: ec_asn1_test.c,v 1.5 2024/10/16 23:49:49 tb Exp $ */ +/* $OpenBSD: ec_asn1_test.c,v 1.6 2024/10/16 23:58:25 tb Exp $ */ /* * Copyright (c) 2017, 2021 Joel Sing * Copyright (c) 2024 Theo Buehler @@ -458,6 +458,10 @@ ec_weierstrass25519(void) if (BN_hex2bn(&b, wei25519.b) == 0) errx(1, "BN_hex2bn(b)"); + /* + * XXX - this uses the Montgomery method. Consider exercising the + * simple method as well. + */ if ((group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) == NULL) { fprintf(stderr, "FAIL: %s EC_GROUP_new_curve_GFp", __func__); goto err; -- cgit v1.2.3-55-g6feb