summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-03 19:49:03 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-03 19:49:03 +0000
commitcea9125d71ad35535b967680a64ee4695c79172e (patch)
tree3c0acdaf8cf4d083c175a24a2459d076a1786093 /src/common/crypto.h
parent871bf904ae7f6cfce3f254397df1da03c8920a61 (diff)
downloadtor-cea9125d71ad35535b967680a64ee4695c79172e.tar.gz
tor-cea9125d71ad35535b967680a64ee4695c79172e.zip
Implement two flavors of authentication for control connections: one for trusted FS, one for untrusted FS.
svn:r2664
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index a969d744fd..7042da3841 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -153,6 +153,10 @@ int base64_decode(char *dest, size_t destlen, const char *src, size_t srclen);
#define BASE32_CHARS "abcdefghijklmnopqrstuvwxyz234567"
void base32_encode(char *dest, size_t destlen, const char *src, size_t srclen);
+#define S2K_SPECIFIER_LEN 9
+void secret_to_key(char *key_out, size_t key_out_len, const char *secret,
+ size_t secret_len, const char *s2k_specifier);
+
#endif
/*