]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sr: Fix comment in shared_random.h
authorDavid Goulet <dgoulet@torproject.org>
Mon, 4 Jul 2016 15:44:10 +0000 (11:44 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 4 Jul 2016 15:44:10 +0000 (11:44 -0400)
Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/shared_random.h

index 51f3b550d8036c2c35d5d610a5a4f02c913e804c..0a2ec63a44687d9949ad395af3f240f7a592cbda 100644 (file)
 #define SR_SRV_MSG_LEN \
   (SR_SRV_TOKEN_LEN + sizeof(uint64_t) + sizeof(uint32_t) + DIGEST256_LEN)
 
-/* Length of base64 encoded commit NOT including the NULL terminated byte.
- * Formula is taken from base64_encode_size. */
+/* Length of base64 encoded commit NOT including the NUL terminated byte.
+ * Formula is taken from base64_encode_size. This adds up to 56 bytes. */
 #define SR_COMMIT_BASE64_LEN \
   (((SR_COMMIT_LEN - 1) / 3) * 4 + 4)
-/* Length of base64 encoded reveal NOT including the NULL terminated byte.
+/* Length of base64 encoded reveal NOT including the NUL terminated byte.
  * Formula is taken from base64_encode_size. This adds up to 56 bytes. */
 #define SR_REVEAL_BASE64_LEN \
   (((SR_REVEAL_LEN - 1) / 3) * 4 + 4)