diff options
-rw-r--r-- | regress/lib/libcrypto/bn/bn_isqrt.c | 5 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/bn_mod_sqrt.c | 4 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/bn_mont.c | 5 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/bn_primes.c | 6 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/bn_test.c | 14 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/bn_to_string.c | 3 | ||||
-rw-r--r-- | regress/lib/libcrypto/bn/bn_unit.c | 3 |
7 files changed, 20 insertions, 20 deletions
diff --git a/regress/lib/libcrypto/bn/bn_isqrt.c b/regress/lib/libcrypto/bn/bn_isqrt.c index a7303220823..b1cacea1cd2 100644 --- a/regress/lib/libcrypto/bn/bn_isqrt.c +++ b/regress/lib/libcrypto/bn/bn_isqrt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_isqrt.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ +/* $OpenBSD: bn_isqrt.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> * @@ -16,6 +16,9 @@ */ #include <err.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> #include <string.h> #include <unistd.h> diff --git a/regress/lib/libcrypto/bn/bn_mod_sqrt.c b/regress/lib/libcrypto/bn/bn_mod_sqrt.c index e193755b748..7757c2a1cae 100644 --- a/regress/lib/libcrypto/bn/bn_mod_sqrt.c +++ b/regress/lib/libcrypto/bn/bn_mod_sqrt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mod_sqrt.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ +/* $OpenBSD: bn_mod_sqrt.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> * @@ -15,6 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <stdio.h> + #include <openssl/bn.h> /* Test that sqrt * sqrt = A (mod p) where p is a prime */ diff --git a/regress/lib/libcrypto/bn/bn_mont.c b/regress/lib/libcrypto/bn/bn_mont.c index d7c8f9581dd..4bcc79d1839 100644 --- a/regress/lib/libcrypto/bn/bn_mont.c +++ b/regress/lib/libcrypto/bn/bn_mont.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mont.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ +/* $OpenBSD: bn_mont.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ /* * Copyright (c) 2014 Miodrag Vallat. @@ -16,10 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <err.h> #include <stdio.h> #include <stdlib.h> -#include <string.h> -#include <err.h> #include <openssl/bn.h> #include <openssl/crypto.h> diff --git a/regress/lib/libcrypto/bn/bn_primes.c b/regress/lib/libcrypto/bn/bn_primes.c index e9a91ba87a1..cd552dc3ac7 100644 --- a/regress/lib/libcrypto/bn/bn_primes.c +++ b/regress/lib/libcrypto/bn/bn_primes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_primes.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ +/* $OpenBSD: bn_primes.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> * @@ -15,6 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> + #include <openssl/bn.h> #include "bn_prime.h" diff --git a/regress/lib/libcrypto/bn/bn_test.c b/regress/lib/libcrypto/bn/bn_test.c index c1feddeda1a..ed61f86f2e9 100644 --- a/regress/lib/libcrypto/bn/bn_test.c +++ b/regress/lib/libcrypto/bn/bn_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_test.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ +/* $OpenBSD: bn_test.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -81,19 +81,9 @@ #include <openssl/bio.h> #include <openssl/bn.h> -#include <openssl/x509.h> #include <openssl/err.h> -int BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, - const BIGNUM *m, BN_CTX *ctx); -int BN_mod_exp_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, - const BIGNUM *m, BN_CTX *ctx); -int BN_mod_exp_mont_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, - const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); -int BN_mod_exp_mont_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, - const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); - -int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom); +#include "bn_local.h" const int num0 = 100; /* number of tests */ const int num1 = 50; /* additional tests for some functions */ diff --git a/regress/lib/libcrypto/bn/bn_to_string.c b/regress/lib/libcrypto/bn/bn_to_string.c index ca5ca2f08de..2275f98de9d 100644 --- a/regress/lib/libcrypto/bn/bn_to_string.c +++ b/regress/lib/libcrypto/bn/bn_to_string.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_to_string.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ +/* $OpenBSD: bn_to_string.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ /* * Copyright (c) 2019 Theo Buehler <tb@openbsd.org> * @@ -17,6 +17,7 @@ #include <err.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <openssl/bn.h> diff --git a/regress/lib/libcrypto/bn/bn_unit.c b/regress/lib/libcrypto/bn/bn_unit.c index b4e4a776de6..1af3e8868d6 100644 --- a/regress/lib/libcrypto/bn/bn_unit.c +++ b/regress/lib/libcrypto/bn/bn_unit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_unit.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ +/* $OpenBSD: bn_unit.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> @@ -18,6 +18,7 @@ #include <err.h> #include <limits.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> |