summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-10-29 06:34:18 +0000
committertb <>2024-10-29 06:34:18 +0000
commitb6840aacc4c4d93817118bf0d184e1f70fc60110 (patch)
tree5935bf7c38213e73be5b80f015b1d79a3aa942fe /src
parent9d2f50421a1569a9d65167573e6ccc91b3aefdfc (diff)
downloadopenbsd-b6840aacc4c4d93817118bf0d184e1f70fc60110.tar.gz
openbsd-b6840aacc4c4d93817118bf0d184e1f70fc60110.tar.bz2
openbsd-b6840aacc4c4d93817118bf0d184e1f70fc60110.zip
ec_asn1_test: point doubling is fine, the leak is elsewhere
(will be fixed shortly).
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ec/ec_asn1_test.c4
1 files changed, 1 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 2faa73cbe6..02796a25ed 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.21 2024/10/29 05:21:31 tb Exp $ */ 1/* $OpenBSD: ec_asn1_test.c,v 1.22 2024/10/29 06:34:18 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>
@@ -2682,13 +2682,11 @@ ec_group_check_private_key(const struct ec_private_key *key)
2682 * point reuse works. 2682 * point reuse works.
2683 */ 2683 */
2684 2684
2685#if 0
2686 if (!EC_POINT_dbl(group, point, point, NULL)) { 2685 if (!EC_POINT_dbl(group, point, point, NULL)) {
2687 fprintf(stderr, "FAIL: EC_POINT_dbl() failed for %s\n", 2686 fprintf(stderr, "FAIL: EC_POINT_dbl() failed for %s\n",
2688 key->name); 2687 key->name);
2689 goto err; 2688 goto err;
2690 } 2689 }
2691#endif
2692 if (!EC_POINT_invert(group, point, NULL)) { 2690 if (!EC_POINT_invert(group, point, NULL)) {
2693 fprintf(stderr, "FAIL: EC_POINT_invert() failed for %s\n", 2691 fprintf(stderr, "FAIL: EC_POINT_invert() failed for %s\n",
2694 key->name); 2692 key->name);