2 #include "nettle-internal.h"
3 #include "nettle-meta.h"
5 const char* hashes[] = {
21 int count = sizeof(hashes)/sizeof(*hashes);
22 for (i = 0; i < count; i++) {
23 for (j = 0; NULL != nettle_hashes[j]; j++) {
24 if (0 == strcmp(hashes[i], nettle_hashes[j]->name))
27 ASSERT(NULL != nettle_hashes[j]); /* make sure we found a matching hash */
30 while (NULL != nettle_hashes[j])
32 ASSERT(j == count); /* we are not missing testing any hashes */
33 for (j = 0; NULL != nettle_hashes[j]; j++)
34 ASSERT(nettle_hashes[j]->digest_size <= NETTLE_MAX_HASH_DIGEST_SIZE);