aboutsummaryrefslogtreecommitdiff
path: root/proposals/224-rend-spec-ng.txt
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-01-10 09:39:06 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-01-10 09:39:06 -0500
commit2cc9fb1b891e62c1dde5e9553d1cb602440f33ae (patch)
tree0eb37d8f54e6bac4c8ac065052ee0ace5edeb441 /proposals/224-rend-spec-ng.txt
parentf2756e0d3407d900aba029b9fc77f2e1c4189073 (diff)
downloadtorspec-2cc9fb1b891e62c1dde5e9553d1cb602440f33ae.tar.gz
torspec-2cc9fb1b891e62c1dde5e9553d1cb602440f33ae.zip
prop224: Clarify INT_N truncation
Closes #19133 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.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/proposals/224-rend-spec-ng.txt b/proposals/224-rend-spec-ng.txt
index 0b23fc1..94ad1f8 100644
--- a/proposals/224-rend-spec-ng.txt
+++ b/proposals/224-rend-spec-ng.txt
@@ -155,7 +155,8 @@ Table of contents:
We use INT_N(val) to denote the network (big-endian) encoding of the
unsigned integer "val" in N bytes. For example, INT_4(1337) is [00 00
- 05 39].
+ 05 39]. Values are truncated like so: val % (2 ^ (N * 8)). For example,
+ INT_4(42) is 42 % 4294967296 (32 bit).
0.3. Cryptographic building blocks