diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-03 19:49:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-03 19:49:03 +0000 |
commit | cea9125d71ad35535b967680a64ee4695c79172e (patch) | |
tree | 3c0acdaf8cf4d083c175a24a2459d076a1786093 /src/common/crypto.h | |
parent | 871bf904ae7f6cfce3f254397df1da03c8920a61 (diff) | |
download | tor-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.h | 4 |
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 /* |