summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/bn/bn_ffdh.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_ffdh.c b/src/regress/lib/libcrypto/bn/bn_ffdh.c
index 37dfe94278..b67b3674ee 100644
--- a/src/regress/lib/libcrypto/bn/bn_ffdh.c
+++ b/src/regress/lib/libcrypto/bn/bn_ffdh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_ffdh.c,v 1.1 2026/01/23 07:24:48 tb Exp $ */ 1/* $OpenBSD: bn_ffdh.c,v 1.2 2026/01/23 08:31:20 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2026 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2026 Theo Buehler <tb@openbsd.org>
@@ -24,7 +24,6 @@
24 24
25#include "bn_local.h" 25#include "bn_local.h"
26 26
27#define HAVE_RFC7919_PRIMES 0
28#define HAVE_SCAPY_SPECIAL 0 27#define HAVE_SCAPY_SPECIAL 0
29 28
30/* 29/*
@@ -191,8 +190,6 @@ static const char *rfc3526_prime_8192 =
191 "60C980DD" "98EDD3DF" "FFFFFFFF" "FFFFFFFF" 190 "60C980DD" "98EDD3DF" "FFFFFFFF" "FFFFFFFF"
192; 191;
193 192
194#if HAVE_RFC7919_PRIMES
195
196static const char *rfc7919_prime_2048 = 193static const char *rfc7919_prime_2048 =
197 "FFFFFFFF" "FFFFFFFF" "ADF85458" "A2BB4A9A" "AFDC5620" "273D3CF1" 194 "FFFFFFFF" "FFFFFFFF" "ADF85458" "A2BB4A9A" "AFDC5620" "273D3CF1"
198 "D8B9C583" "CE2D3695" "A9E13641" "146433FB" "CC939DCE" "249B3EF9" 195 "D8B9C583" "CE2D3695" "A9E13641" "146433FB" "CC939DCE" "249B3EF9"
@@ -327,8 +324,6 @@ static const char *rfc7919_prime_8192 =
327 "97D11D49" "F7A8443D" "0822E506" "A9F4614E" "011E2A94" "838FF88C" 324 "97D11D49" "F7A8443D" "0822E506" "A9F4614E" "011E2A94" "838FF88C"
328 "D68C8BB7" "C5C6424C" "FFFFFFFF" "FFFFFFFF"; 325 "D68C8BB7" "C5C6424C" "FFFFFFFF" "FFFFFFFF";
329 326
330#endif /* HAVE_RFC7919_PRIMES */
331
332typedef BIGNUM *(*get_p_fn)(BIGNUM *); 327typedef BIGNUM *(*get_p_fn)(BIGNUM *);
333 328
334static const struct ffdh_test { 329static const struct ffdh_test {
@@ -376,7 +371,6 @@ static const struct ffdh_test {
376 .str = &rfc3526_prime_8192, 371 .str = &rfc3526_prime_8192,
377 .fn = BN_get_rfc3526_prime_8192, 372 .fn = BN_get_rfc3526_prime_8192,
378 }, 373 },
379#if HAVE_RFC7919_PRIMES
380 { 374 {
381 .name = "RFC 7919, 2048 bit", 375 .name = "RFC 7919, 2048 bit",
382 .str = &rfc7919_prime_2048, 376 .str = &rfc7919_prime_2048,
@@ -402,7 +396,6 @@ static const struct ffdh_test {
402 .str = &rfc7919_prime_8192, 396 .str = &rfc7919_prime_8192,
403 .fn = BN_get_rfc7919_prime_8192, 397 .fn = BN_get_rfc7919_prime_8192,
404 }, 398 },
405#endif /* HAVE_RFC7919_PRIMES */
406}; 399};
407 400
408#define N_TESTS (sizeof(ffdh_tests) / sizeof(ffdh_tests[0])) 401#define N_TESTS (sizeof(ffdh_tests) / sizeof(ffdh_tests[0]))