diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-08 20:56:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-08 20:56:33 +0000 |
commit | aa7cfd93e53f5d2d01abbc81ce8ee6f6d27ec3c5 (patch) | |
tree | 6cee8a54f8800578928b3365d39288ee468808e5 /src/common/crypto.h | |
parent | d23769239651df818c70f26ab88d57fd712c25bc (diff) | |
download | tor-aa7cfd93e53f5d2d01abbc81ce8ee6f6d27ec3c5.tar.gz tor-aa7cfd93e53f5d2d01abbc81ce8ee6f6d27ec3c5.zip |
Fix base32 implementation; make base32 implementation follow standard; add more tests for base32
svn:r1574
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index d9da82a05f..f3bd0e6a8e 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -78,7 +78,7 @@ int crypto_pk_check_fingerprint_syntax(const char *s); int base64_encode(char *dest, int destlen, const char *src, int srclen); int base64_decode(char *dest, int destlen, const char *src, int srclen); -#define BASE32_CHARS "abcdefghijklmnopqrstuvwxyz012345" +#define BASE32_CHARS "abcdefghijklmnopqrstuvwxyz234567" int base32_encode(char *dest, int destlen, const char *src, int srclen); /* Key negotiation */ |