summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-04-17 18:33:21 +0000
committermiod <miod@openbsd.org>2014-04-17 18:33:21 +0000
commit00960baa8d61a631005783eda8dab8bf662d5c96 (patch)
treeebd0dea871c77c55ae89d5a654625bc636718047
parentOk, there was a need for OPENSSL_cleanse() instead of bzero() to prevent (diff)
downloadwireguard-openbsd-00960baa8d61a631005783eda8dab8bf662d5c96.tar.xz
wireguard-openbsd-00960baa8d61a631005783eda8dab8bf662d5c96.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--regress/lib/libcrypto/Makefile3
-rw-r--r--regress/lib/libcrypto/gcm128/Makefile12
2 files changed, 14 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/Makefile b/regress/lib/libcrypto/Makefile
index 02734e992e0..46e867b81da 100644
--- a/regress/lib/libcrypto/Makefile
+++ b/regress/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.2 2014/04/17 07:52:08 jsg Exp $
+# $OpenBSD: Makefile,v 1.3 2014/04/17 18:33:21 miod Exp $
SUBDIR= \
bf \
@@ -13,6 +13,7 @@ SUBDIR= \
engine \
evp \
exp \
+ gcm128 \
hmac \
idea \
ige \
diff --git a/regress/lib/libcrypto/gcm128/Makefile b/regress/lib/libcrypto/gcm128/Makefile
new file mode 100644
index 00000000000..7583403ad3c
--- /dev/null
+++ b/regress/lib/libcrypto/gcm128/Makefile
@@ -0,0 +1,12 @@
+# $OpenBSD: Makefile,v 1.1 2014/04/17 18:33:22 miod Exp $
+
+PROG= gcm128
+SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes
+CFLAGS+= -DSELFTEST
+CFLAGS+= -I${SRC}
+.PATH: ${SRC}
+
+LDADD= -lcrypto
+DPADD= ${LIBCRYPTO}
+
+.include <bsd.regress.mk>