summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/bn/bn_test.c
diff options
context:
space:
mode:
authortb <>2022-12-06 18:23:29 +0000
committertb <>2022-12-06 18:23:29 +0000
commit25379fab64d0e4e97e49ce782d1f7239af8a6192 (patch)
tree3d7a75b4695a187d73d96688171cae5e85928f1f /src/regress/lib/libcrypto/bn/bn_test.c
parent63e1e004d5a60eea51f7c1fcc42d54aca4f605b9 (diff)
downloadopenbsd-25379fab64d0e4e97e49ce782d1f7239af8a6192.tar.gz
openbsd-25379fab64d0e4e97e49ce782d1f7239af8a6192.tar.bz2
openbsd-25379fab64d0e4e97e49ce782d1f7239af8a6192.zip
Add a few missing headers and drop a few unused ones
In bn_test.c include bn_local.h instead of using copy-pasted prototypes.
Diffstat (limited to 'src/regress/lib/libcrypto/bn/bn_test.c')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_test.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c
index c1feddeda1..ed61f86f2e 100644
--- a/src/regress/lib/libcrypto/bn/bn_test.c
+++ b/src/regress/lib/libcrypto/bn/bn_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_test.c,v 1.1 2022/12/01 20:50:10 tb Exp $ */ 1/* $OpenBSD: bn_test.c,v 1.2 2022/12/06 18:23:29 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -81,19 +81,9 @@
81 81
82#include <openssl/bio.h> 82#include <openssl/bio.h>
83#include <openssl/bn.h> 83#include <openssl/bn.h>
84#include <openssl/x509.h>
85#include <openssl/err.h> 84#include <openssl/err.h>
86 85
87int BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 86#include "bn_local.h"
88 const BIGNUM *m, BN_CTX *ctx);
89int BN_mod_exp_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
90 const BIGNUM *m, BN_CTX *ctx);
91int BN_mod_exp_mont_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
92 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
93int BN_mod_exp_mont_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
94 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
95
96int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);
97 87
98const int num0 = 100; /* number of tests */ 88const int num0 = 100; /* number of tests */
99const int num1 = 50; /* additional tests for some functions */ 89const int num1 = 50; /* additional tests for some functions */