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 /doc | |
parent | d23769239651df818c70f26ab88d57fd712c25bc (diff) | |
download | tor-aa7cfd93e53f5d2d01abbc81ce8ee6f6d27ec3c5.tar tor-aa7cfd93e53f5d2d01abbc81ce8ee6f6d27ec3c5.tar.gz |
Fix base32 implementation; make base32 implementation follow standard; add more tests for base32
svn:r1574
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rend-spec.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/rend-spec.txt b/doc/rend-spec.txt index d968510ae..1299201cb 100644 --- a/doc/rend-spec.txt +++ b/doc/rend-spec.txt @@ -183,10 +183,8 @@ Tor Rendezvous Spec 1. Let H = H(PK). 2. Let H' = the first 80 bits of H, considering each octet from most significant bit to least significant bit. - 2. Generate a 16-character encoding of H', taking H' 5 bits at - a time, and mapping each 5-bit value to a character as follows: - 0..25 map to the characters 'a'...'z', respectively. - 26..31 map to the characters '0'...'5', respectively. + 2. Generate a 16-character encoding of H', using base32 as defined + in RFC 3548. (We only use 80 bits instead of the 160 bits from SHA1 because we don't need to worry about man-in-the-middle attacks, and because it will make |