diff options
author | David Goulet <dgoulet@torproject.org> | 2017-04-19 10:25:15 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-04-19 10:25:15 -0400 |
commit | 8eee5024f66d4816d63b341550c01ba4ab059bfc (patch) | |
tree | cb55cd92234a36689628dbb6335662916717c08b /proposals/224-rend-spec-ng.txt | |
parent | f7458b13e25fd8a61bdb922e2a750bb12ec3312c (diff) | |
download | torspec-8eee5024f66d4816d63b341550c01ba4ab059bfc.tar.gz torspec-8eee5024f66d4816d63b341550c01ba4ab059bfc.zip |
prop224: Be consistent with our concatenation symbol (|)
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'proposals/224-rend-spec-ng.txt')
-rw-r--r-- | proposals/224-rend-spec-ng.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/proposals/224-rend-spec-ng.txt b/proposals/224-rend-spec-ng.txt index b3fcf81..1c2f0fa 100644 --- a/proposals/224-rend-spec-ng.txt +++ b/proposals/224-rend-spec-ng.txt @@ -211,7 +211,7 @@ Table of contents: * Instantiate KDF with SHAKE-256. - * Instantiate MAC(key=k, message=m) with H(k_len || k || m), + * Instantiate MAC(key=k, message=m) with H(k_len | k | m), where k_len is htonll(len(k)). For legacy purposes, we specify compatibility with older versions of @@ -782,9 +782,9 @@ Table of contents: for replicanum in 1...hsdir_n_replicas: hs_index(replicanum) = H("store-at-idx" | - blinded_public_key | - INT_8(replicanum) | - INT_8(period_num) ) + blinded_public_key | + INT_8(replicanum) | + INT_8(period_num) ) where blinded_public_key is specified in section [KEYBLIND], and period_num is calculated using the current consensus "valid-after" as specified in @@ -1891,8 +1891,8 @@ Table of contents: version field and a basic checksum. All this information is then base32 encoded as shown below: - onion_address = base32(PUBKEY || CHECKSUM || VERSION) + ".onion" - CHECKSUM = H(".onion checksum" || PUBKEY || VERSION)[:2] + onion_address = base32(PUBKEY | CHECKSUM | VERSION) + ".onion" + CHECKSUM = H(".onion checksum" | PUBKEY | VERSION)[:2] where: - PUBKEY is the 32 bytes ed25519 master pubkey of the hidden service. |