diff options
| author | miod <> | 2014-04-17 18:33:22 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-17 18:33:22 +0000 |
| commit | 78c721cd0d1ef7e35309cffbef5e6735d0b5f892 (patch) | |
| tree | dabb371884b41d40a8af813c2de83e843a93a723 /src | |
| parent | 777aa5b3f157309dd7bae673d3f2ae8f37e71457 (diff) | |
| download | openbsd-78c721cd0d1ef7e35309cffbef5e6735d0b5f892.tar.gz openbsd-78c721cd0d1ef7e35309cffbef5e6735d0b5f892.tar.bz2 openbsd-78c721cd0d1ef7e35309cffbef5e6735d0b5f892.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.
Diffstat (limited to 'src')
| -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> | ||
