summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-09-16 12:34:44 -0400
committerNick Mathewson <nickm@torproject.org>2009-10-15 15:17:13 -0400
commit5576a3a094de49246e501bb24d1b3dc3a5d610b9 (patch)
tree2be0e6253bac147ad07baa989a967edca38528a4 /src/common/crypto.h
parent3b2fc659a8ef83feedadcda32de49db06b80af10 (diff)
downloadtor-5576a3a094de49246e501bb24d1b3dc3a5d610b9.tar.gz
tor-5576a3a094de49246e501bb24d1b3dc3a5d610b9.zip
Parse detached signature documents with multiple flavors and algorithms.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index ed8468046f..c0a4526255 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -177,6 +177,7 @@ 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);
const char *crypto_digest_algorithm_get_name(digest_algorithm_t alg);
+int crypto_digest_algorithm_parse_name(const char *name);
crypto_digest_env_t *crypto_new_digest_env(void);
crypto_digest_env_t *crypto_new_digest256_env(digest_algorithm_t algorithm);
void crypto_free_digest_env(crypto_digest_env_t *digest);