diff options
author | Niels Möller <nisse@lysator.liu.se> | 2017-01-12 21:54:38 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2017-01-12 21:54:38 +0100 |
commit | e9f3d8a6dc03b97130ab91818bda9ee6ddc40829 (patch) | |
tree | 5052df0a4151a3916e5427e136100b63bbf198d5 /nettle-meta-hashes.c | |
parent | f8ad54fa7b35f0b122caf993c6e5087de48c3c1a (diff) | |
download | nettle-e9f3d8a6dc03b97130ab91818bda9ee6ddc40829.tar.gz |
New functions nettle_get_hashes and nettle_lookup_hash.
Diffstat (limited to 'nettle-meta-hashes.c')
-rw-r--r-- | nettle-meta-hashes.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nettle-meta-hashes.c b/nettle-meta-hashes.c index 2220968c..37552ede 100644 --- a/nettle-meta-hashes.c +++ b/nettle-meta-hashes.c @@ -34,9 +34,10 @@ #endif #include <stddef.h> + #include "nettle-meta.h" -const struct nettle_hash * const nettle_hashes[] = { +const struct nettle_hash * const _nettle_hashes[] = { &nettle_md2, &nettle_md4, &nettle_md5, @@ -52,3 +53,9 @@ const struct nettle_hash * const nettle_hashes[] = { &nettle_sha3_512, NULL }; + +const struct nettle_hash * const * +nettle_get_hashes (void) +{ + return _nettle_hashes; +} |