diff options
author | tb <> | 2024-10-29 05:21:31 +0000 |
---|---|---|
committer | tb <> | 2024-10-29 05:21:31 +0000 |
commit | 9d2f50421a1569a9d65167573e6ccc91b3aefdfc (patch) | |
tree | 325d9c0459c33fb0b82c53d13f0a7c3bb7ba4bf4 /src | |
parent | 2178bb881a82d473bc9bb46280c53a4a8d06d03d (diff) | |
download | openbsd-9d2f50421a1569a9d65167573e6ccc91b3aefdfc.tar.gz openbsd-9d2f50421a1569a9d65167573e6ccc91b3aefdfc.tar.bz2 openbsd-9d2f50421a1569a9d65167573e6ccc91b3aefdfc.zip |
Disable point doubling for now, it leaks due to a doc bug.
Can't replace it with adding the point to itself since that also leaks
(another doc bug). Who would've thought.
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/ec/ec_asn1_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/ec/ec_asn1_test.c b/src/regress/lib/libcrypto/ec/ec_asn1_test.c index 058d0d0067..2faa73cbe6 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.20 2024/10/28 21:20:30 tb Exp $ */ | 1 | /* $OpenBSD: ec_asn1_test.c,v 1.21 2024/10/29 05:21:31 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,11 +2682,13 @@ 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 | ||
2685 | if (!EC_POINT_dbl(group, point, point, NULL)) { | 2686 | if (!EC_POINT_dbl(group, point, point, NULL)) { |
2686 | fprintf(stderr, "FAIL: EC_POINT_dbl() failed for %s\n", | 2687 | fprintf(stderr, "FAIL: EC_POINT_dbl() failed for %s\n", |
2687 | key->name); | 2688 | key->name); |
2688 | goto err; | 2689 | goto err; |
2689 | } | 2690 | } |
2691 | #endif | ||
2690 | if (!EC_POINT_invert(group, point, NULL)) { | 2692 | if (!EC_POINT_invert(group, point, NULL)) { |
2691 | fprintf(stderr, "FAIL: EC_POINT_invert() failed for %s\n", | 2693 | fprintf(stderr, "FAIL: EC_POINT_invert() failed for %s\n", |
2692 | key->name); | 2694 | key->name); |