diff options
| author | tb <> | 2024-10-29 05:21:31 +0000 |
|---|---|---|
| committer | tb <> | 2024-10-29 05:21:31 +0000 |
| commit | 0e15a870dfdde0b87399bd6a94928016043ab174 (patch) | |
| tree | 325d9c0459c33fb0b82c53d13f0a7c3bb7ba4bf4 /src/regress/lib/libcrypto | |
| parent | 1abf50af18621ca3ad9309f5adb2a698652d091c (diff) | |
| download | openbsd-0e15a870dfdde0b87399bd6a94928016043ab174.tar.gz openbsd-0e15a870dfdde0b87399bd6a94928016043ab174.tar.bz2 openbsd-0e15a870dfdde0b87399bd6a94928016043ab174.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/regress/lib/libcrypto')
| -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); |
