summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authortb <>2022-12-01 21:21:51 +0000
committertb <>2022-12-01 21:21:51 +0000
commit71fd38306a8cf41970029e506e8a2793c010e3ed (patch)
tree009dac1a4addacaf9a4e4fab38ce60cb3db8f131 /src/regress/lib
parent32cbc4bb80ffd13ea1df93bf4cd22a4ff2bb7ca8 (diff)
downloadopenbsd-71fd38306a8cf41970029e506e8a2793c010e3ed.tar.gz
openbsd-71fd38306a8cf41970029e506e8a2793c010e3ed.tar.bz2
openbsd-71fd38306a8cf41970029e506e8a2793c010e3ed.zip
regress/libcrypto: merge exp/ into bn/
Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests a variety of BN_mod_exp*() API behavior and correctness. Commit stolen from jsing
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/bn/Makefile4
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_exp.c (renamed from src/regress/lib/libcrypto/exp/exptest.c)2
-rw-r--r--src/regress/lib/libcrypto/exp/Makefile9
3 files changed, 4 insertions, 11 deletions
diff --git a/src/regress/lib/libcrypto/bn/Makefile b/src/regress/lib/libcrypto/bn/Makefile
index 971ace1c77..b5d146c71b 100644
--- a/src/regress/lib/libcrypto/bn/Makefile
+++ b/src/regress/lib/libcrypto/bn/Makefile
@@ -1,8 +1,9 @@
1# $OpenBSD: Makefile,v 1.8 2022/12/01 20:50:10 tb Exp $ 1# $OpenBSD: Makefile,v 1.9 2022/12/01 21:21:51 tb Exp $
2 2
3PROGS += bn_add_sub 3PROGS += bn_add_sub
4PROGS += bn_cmp 4PROGS += bn_cmp
5PROGS += bn_isqrt 5PROGS += bn_isqrt
6PROGS += bn_mod_exp
6PROGS += bn_mod_exp2_mont 7PROGS += bn_mod_exp2_mont
7PROGS += bn_mod_sqrt 8PROGS += bn_mod_sqrt
8PROGS += bn_mont 9PROGS += bn_mont
@@ -12,6 +13,7 @@ PROGS += bn_to_string
12PROGS += bn_unit 13PROGS += bn_unit
13 14
14STATIC_LINK += bn_isqrt 15STATIC_LINK += bn_isqrt
16STATIC_LINK += bn_mod_exp
15STATIC_LINK += bn_primes 17STATIC_LINK += bn_primes
16STATIC_LINK += bn_to_string 18STATIC_LINK += bn_to_string
17STATIC_LINK += bn_rand_interval 19STATIC_LINK += bn_rand_interval
diff --git a/src/regress/lib/libcrypto/exp/exptest.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
index 9a7a769e07..337cbd1373 100644
--- a/src/regress/lib/libcrypto/exp/exptest.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: exptest.c,v 1.10 2022/12/01 21:13:58 tb Exp $ */ 1/* $OpenBSD: bn_mod_exp.c,v 1.1 2022/12/01 21:21:51 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 *
diff --git a/src/regress/lib/libcrypto/exp/Makefile b/src/regress/lib/libcrypto/exp/Makefile
deleted file mode 100644
index 890b38e9fe..0000000000
--- a/src/regress/lib/libcrypto/exp/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
1# $OpenBSD: Makefile,v 1.4 2017/01/21 09:38:58 beck Exp $
2
3PROG= exptest
4LDADD= ${CRYPTO_INT}
5DPADD= ${LIBCRYPTO}
6WARNINGS= Yes
7CFLAGS+= -Werror
8
9.include <bsd.regress.mk>