diff options
author | tb <> | 2022-12-01 21:21:51 +0000 |
---|---|---|
committer | tb <> | 2022-12-01 21:21:51 +0000 |
commit | 71fd38306a8cf41970029e506e8a2793c010e3ed (patch) | |
tree | 009dac1a4addacaf9a4e4fab38ce60cb3db8f131 /src/regress/lib | |
parent | 32cbc4bb80ffd13ea1df93bf4cd22a4ff2bb7ca8 (diff) | |
download | openbsd-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/Makefile | 4 | ||||
-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/Makefile | 9 |
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 | ||
3 | PROGS += bn_add_sub | 3 | PROGS += bn_add_sub |
4 | PROGS += bn_cmp | 4 | PROGS += bn_cmp |
5 | PROGS += bn_isqrt | 5 | PROGS += bn_isqrt |
6 | PROGS += bn_mod_exp | ||
6 | PROGS += bn_mod_exp2_mont | 7 | PROGS += bn_mod_exp2_mont |
7 | PROGS += bn_mod_sqrt | 8 | PROGS += bn_mod_sqrt |
8 | PROGS += bn_mont | 9 | PROGS += bn_mont |
@@ -12,6 +13,7 @@ PROGS += bn_to_string | |||
12 | PROGS += bn_unit | 13 | PROGS += bn_unit |
13 | 14 | ||
14 | STATIC_LINK += bn_isqrt | 15 | STATIC_LINK += bn_isqrt |
16 | STATIC_LINK += bn_mod_exp | ||
15 | STATIC_LINK += bn_primes | 17 | STATIC_LINK += bn_primes |
16 | STATIC_LINK += bn_to_string | 18 | STATIC_LINK += bn_to_string |
17 | STATIC_LINK += bn_rand_interval | 19 | STATIC_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 | |||
3 | PROG= exptest | ||
4 | LDADD= ${CRYPTO_INT} | ||
5 | DPADD= ${LIBCRYPTO} | ||
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
8 | |||
9 | .include <bsd.regress.mk> | ||