diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-30 19:20:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-30 19:20:11 +0000 |
commit | 32cc2e590929a3679aebeeb836dcf46762a57c35 (patch) | |
tree | 0edd5866fdd2d9a3d57d85d5ce6b6bf8b63f5dca /doc/rend-spec.txt | |
parent | b1e98321365bd3080f176d38d4e71b6114d6517d (diff) | |
download | tor-32cc2e590929a3679aebeeb836dcf46762a57c35.tar.gz tor-32cc2e590929a3679aebeeb836dcf46762a57c35.zip |
Make service IDs 80 bits, not 128
svn:r1393
Diffstat (limited to 'doc/rend-spec.txt')
-rw-r--r-- | doc/rend-spec.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/rend-spec.txt b/doc/rend-spec.txt index afe7d87184..0130d4967e 100644 --- a/doc/rend-spec.txt +++ b/doc/rend-spec.txt @@ -171,16 +171,15 @@ Tor Rendezvous Spec ~16-octet hash of Bob's service's public key, computed as follows: 1. Let H = H(PK). - 2. Let H' = the first 130 bits of H, considering each octet from + 2. Let H' = the first 80 bits of H, considering each octet from most significant bit to least significant big. 2. Generate a 26-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. - (We only use 130 bits instead of the 160 bits from SHA1 because we don't - need to worry about man-in-the-middle attacks. We use 130 instead of 128 - in order to have an even multiple of 5.) + (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.) [Yes, numbers are allowed at the beginning. See RFC1123. -NM] |