diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-04-18 11:13:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-04-18 11:13:36 -0400 |
commit | 8362f8854aa3e36b766724226a3baec4d325c1c0 (patch) | |
tree | d309eb1c3b9502b4323405f1a312f04dd868077c /src/common/crypto.h | |
parent | cd1cdae0fac33bca359b34dae4062fe87a351661 (diff) | |
parent | 4b15606fa2848f5112599865eb7b15ef2178e66a (diff) | |
download | tor-8362f8854aa3e36b766724226a3baec4d325c1c0.tar tor-8362f8854aa3e36b766724226a3baec4d325c1c0.tar.gz |
Merge branch 'less_charbuf_rebased' into maint-0.2.4
Conflicts:
src/or/dirserv.c
src/or/dirserv.h
src/test/test_dir.c
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index b78323078..2fbca4c26 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -205,6 +205,10 @@ int crypto_digest(char *digest, const char *m, size_t len); int crypto_digest256(char *digest, const char *m, size_t len, digest_algorithm_t algorithm); int crypto_digest_all(digests_t *ds_out, const char *m, size_t len); +struct smartlist_t; +void crypto_digest_smartlist(char *digest_out, size_t len_out, + const struct smartlist_t *lst, const char *append, + digest_algorithm_t alg); const char *crypto_digest_algorithm_get_name(digest_algorithm_t alg); int crypto_digest_algorithm_parse_name(const char *name); crypto_digest_t *crypto_digest_new(void); |