summaryrefslogtreecommitdiff
path: root/nettle-meta.h
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2011-03-23 11:34:47 +0100
committerNiels Möller <nisse@lysator.liu.se>2011-03-23 11:34:47 +0100
commitd83027b19bd25835cdfb467f56ac3481d75f7976 (patch)
tree5a716e2c884e2e8fe298faa5b80c41fdd7dfe9e3 /nettle-meta.h
parent392b6d7d7f47c015183ada125d0e45f8433af49e (diff)
downloadnettle-d83027b19bd25835cdfb467f56ac3481d75f7976.tar.gz
Contributed by Daniel Kahn Gillmor:
* testsuite/Makefile.in (TS_NETTLE_SOURCES): Added meta-hash-test.c, meta-cipher-test.c, and meta-armor-test.c. * nettle.texinfo: Document nettle_hashes and nettle_ciphers. * nettle-meta.h: Declare algorithm lists nettle_ciphers, nettle_hashes, nettle_armors. * Makefile.in (nettle_SOURCES): Added nettle-meta-hashes.c, nettle-meta-ciphers.c, and nettle-meta-armors.c. * nettle-meta-armors.c: New file. * nettle-meta-ciphers.c: New file. * nettle-meta-hashes.c: New file. Rev: nettle/ChangeLog:1.159 Rev: nettle/Makefile.in:1.32 Rev: nettle/nettle-meta-armors.c:1.1 Rev: nettle/nettle-meta-ciphers.c:1.1 Rev: nettle/nettle-meta-hashes.c:1.1 Rev: nettle/nettle-meta.h:1.10 Rev: nettle/nettle.texinfo:1.22
Diffstat (limited to 'nettle-meta.h')
-rw-r--r--nettle-meta.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/nettle-meta.h b/nettle-meta.h
index 2a009546..0fbfc031 100644
--- a/nettle-meta.h
+++ b/nettle-meta.h
@@ -96,6 +96,9 @@ struct nettle_cipher
(nettle_crypt_func *) name##_decrypt, \
}
+/* null-terminated list of ciphers implemented by this version of nettle */
+extern const struct nettle_cipher * const nettle_ciphers[];
+
extern const struct nettle_cipher nettle_aes128;
extern const struct nettle_cipher nettle_aes192;
extern const struct nettle_cipher nettle_aes256;
@@ -149,6 +152,9 @@ struct nettle_hash
(nettle_hash_digest_func *) name##_digest \
}
+/* null-terminated list of digests implemented by this version of nettle */
+extern const struct nettle_hash * const nettle_hashes[];
+
extern const struct nettle_hash nettle_md2;
extern const struct nettle_hash nettle_md4;
extern const struct nettle_hash nettle_md5;
@@ -207,6 +213,9 @@ struct nettle_armor
(nettle_armor_decode_final_func *) name##_decode_final, \
}
+/* null-terminated list of armor schemes implemented by this version of nettle */
+extern const struct nettle_armor * const nettle_armors[];
+
extern const struct nettle_armor nettle_base64;
extern const struct nettle_armor nettle_base16;