>From 9e4e9ac2037610ee321b79a16c2509936aa9fcef Mon Sep 17 00:00:00 2001 From: Bruno Haible
Date: Sat, 5 May 2018 17:42:46 +0200 Subject: [PATCH 4/4] sha512: Add tests. * tests/test-sha512.c: New file. * modules/crypto/sha512-tests: New file. --- ChangeLog | 6 ++++++ modules/crypto/sha512-tests | 12 ++++++++++++ tests/test-sha512.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 modules/crypto/sha512-tests create mode 100644 tests/test-sha512.c diff --git a/ChangeLog b/ChangeLog index d1e4990..122f8da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2018-05-05 Bruno Haible + sha512: Add tests. + * tests/test-sha512.c: New file. + * modules/crypto/sha512-tests: New file. + +2018-05-05 Bruno Haible + sha256: Add tests. * tests/test-sha256.c: New file. * modules/crypto/sha256-tests: New file. diff --git a/modules/crypto/sha512-tests b/modules/crypto/sha512-tests new file mode 100644 index 0000000..ee24afb --- /dev/null +++ b/modules/crypto/sha512-tests @@ -0,0 +1,12 @@ +Files: +tests/test-sha512.c +tests/test-digest.h + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-sha512 +check_PROGRAMS += test-sha512 +test_sha512_LDADD = $(LDADD) @LIB_CRYPTO@ diff --git a/tests/test-sha512.c b/tests/test-sha512.c new file mode 100644 index 0000000..577feb1 --- /dev/null +++ b/tests/test-sha512.c @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2018 Free Software Foundation, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see