diff options
author | miod <> | 2014-04-17 18:33:22 +0000 |
---|---|---|
committer | miod <> | 2014-04-17 18:33:22 +0000 |
commit | 4e69a4929c85c995c1bf1bfd11b1aeb9947d7b85 (patch) | |
tree | dabb371884b41d40a8af813c2de83e843a93a723 | |
parent | 6b39fdab5868da712ead9164b4680bd7a7d86773 (diff) | |
download | openbsd-4e69a4929c85c995c1bf1bfd11b1aeb9947d7b85.tar.gz openbsd-4e69a4929c85c995c1bf1bfd11b1aeb9947d7b85.tar.bz2 openbsd-4e69a4929c85c995c1bf1bfd11b1aeb9947d7b85.zip |
crypto/modes/gcm128.c can be used as its own selftest. Add it to regress,
conveniently leaving the benchmark code not compiled in the test.
-rw-r--r-- | src/regress/lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/gcm128/Makefile | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/Makefile b/src/regress/lib/libcrypto/Makefile index 02734e992e..46e867b81d 100644 --- a/src/regress/lib/libcrypto/Makefile +++ b/src/regress/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2014/04/17 07:52:08 jsg Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2014/04/17 18:33:21 miod Exp $ |
2 | 2 | ||
3 | SUBDIR= \ | 3 | SUBDIR= \ |
4 | bf \ | 4 | bf \ |
@@ -13,6 +13,7 @@ SUBDIR= \ | |||
13 | engine \ | 13 | engine \ |
14 | evp \ | 14 | evp \ |
15 | exp \ | 15 | exp \ |
16 | gcm128 \ | ||
16 | hmac \ | 17 | hmac \ |
17 | idea \ | 18 | idea \ |
18 | ige \ | 19 | ige \ |
diff --git a/src/regress/lib/libcrypto/gcm128/Makefile b/src/regress/lib/libcrypto/gcm128/Makefile new file mode 100644 index 0000000000..7583403ad3 --- /dev/null +++ b/src/regress/lib/libcrypto/gcm128/Makefile | |||
@@ -0,0 +1,12 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/04/17 18:33:22 miod Exp $ | ||
2 | |||
3 | PROG= gcm128 | ||
4 | SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes | ||
5 | CFLAGS+= -DSELFTEST | ||
6 | CFLAGS+= -I${SRC} | ||
7 | .PATH: ${SRC} | ||
8 | |||
9 | LDADD= -lcrypto | ||
10 | DPADD= ${LIBCRYPTO} | ||
11 | |||
12 | .include <bsd.regress.mk> | ||