summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-08-19 20:03:40 -0400
committerNick Mathewson <nickm@torproject.org>2009-10-15 15:17:12 -0400
commit8d41e6c47126fb467858f98b06ab7460dcc6647b (patch)
tree3ffc6a5c8561892069abbb3a54fa4cbc4e043947 /src/common/crypto.h
parent5ef97ddd42dfd51fc296bb51b612780aec09c5c7 (diff)
downloadtor-8d41e6c47126fb467858f98b06ab7460dcc6647b.tar.gz
tor-8d41e6c47126fb467858f98b06ab7460dcc6647b.zip
Support for encoding and decoding 256-bit digests in base64
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index f0958a8073..63ea96d056 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -211,6 +211,8 @@ int base32_decode(char *dest, size_t destlen, const char *src, size_t srclen);
int digest_to_base64(char *d64, const char *digest);
int digest_from_base64(char *digest, const char *d64);
+int digest256_to_base64(char *d64, const char *digest);
+int digest256_from_base64(char *digest, const char *d64);
/** Length of RFC2440-style S2K specifier: the first 8 bytes are a salt, the
* 9th describes how much iteration to do. */