2012-09-19 Niels Möller <nisse@lysator.liu.se>
+ * testsuite/meta-hash-test.c (test_main): Validate
+ NETTLE_MAX_HASH_DIGEST_SIZE.
+
* pbkdf2.h (PBKDF2): New macro.
* testsuite/pbkdf2-test.c: Use it.
#include "testutils.h"
+#include "nettle-internal.h"
#include "nettle-meta.h"
const char* hashes[] = {
while (NULL != nettle_hashes[j])
j++;
ASSERT(j == count); /* we are not missing testing any hashes */
+ for (j = 0; NULL != nettle_hashes[j]; j++)
+ ASSERT(nettle_hashes[j]->digest_size <= NETTLE_MAX_HASH_DIGEST_SIZE);
}