2 #include "nettle-internal.h"
3 #include "nettle-meta.h"
4 /* For NETTLE_MAX_HASH_CONTEXT_SIZE */
7 const char* hashes[] = {
29 int count = sizeof(hashes)/sizeof(*hashes);
30 for (i = 0; i < count; i++) {
31 /* make sure we found a matching hash */
32 ASSERT(nettle_lookup_hash(hashes[i]) != NULL);
35 for (i = 0; NULL != nettle_hashes[i]; i++) {
36 ASSERT(nettle_hashes[i]->digest_size <= NETTLE_MAX_HASH_DIGEST_SIZE);
37 ASSERT(nettle_hashes[i]->context_size <= NETTLE_MAX_HASH_CONTEXT_SIZE);
39 ASSERT(i == count); /* we are not missing testing any hashes */