aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2023-11-09 10:35:19 -0500
committerNick Mathewson <nickm@torproject.org>2023-11-09 10:35:19 -0500
commit0df02187826397e83239a70a29c8af0866e5a53d (patch)
tree564012ae58933182552320d30b1eae6f4f9b8564
parenta24c5f71df9c5e3258789c2b1ade492b214509a4 (diff)
downloadtorspec-0df02187826397e83239a70a29c8af0866e5a53d.tar.gz
torspec-0df02187826397e83239a70a29c8af0866e5a53d.zip
Move concat operator into notation.
-rw-r--r--spec/intro/conventions.md4
-rw-r--r--spec/tor-spec/preliminaries.md2
2 files changed, 4 insertions, 2 deletions
diff --git a/spec/intro/conventions.md b/spec/intro/conventions.md
index 3563a33..e474c3a 100644
--- a/spec/intro/conventions.md
+++ b/spec/intro/conventions.md
@@ -60,6 +60,10 @@ in big-endian ("network") order.
## Notation {#notation}
+### Operations on byte strings {#ops}
+
+* `A | B` represents the concatenation of two binary strings `A` and `B`.
+
### Binary literals {#binary-literals}
When we write a series of one-byte hexadecimal literals
diff --git a/spec/tor-spec/preliminaries.md b/spec/tor-spec/preliminaries.md
index 60359af..66ad253 100644
--- a/spec/tor-spec/preliminaries.md
+++ b/spec/tor-spec/preliminaries.md
@@ -12,8 +12,6 @@
K -- a key for a symmetric cipher.
N -- a "nonce", a random value, usually deterministically chosen
from other inputs using hashing.
-
- a|b -- concatenation of 'a' and 'b'.
```
H(m) -- a cryptographic hash of m.