[tor-commits] [tor/master] sr: Fix comment in shared_random.h

nickm at torproject.org nickm at torproject.org
Tue Jul 5 16:14:28 UTC 2016


commit cc34929abc3a5423372d1e12d47710ed366d43b4
Author: David Goulet <dgoulet at torproject.org>
Date:   Mon Jul 4 11:44:10 2016 -0400

    sr: Fix comment in shared_random.h
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 src/or/shared_random.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/or/shared_random.h b/src/or/shared_random.h
index 51f3b55..0a2ec63 100644
--- a/src/or/shared_random.h
+++ b/src/or/shared_random.h
@@ -34,11 +34,11 @@
 #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)





More information about the tor-commits mailing list