[tor-commits] [torspec/master] document sha256 digest in extra-info-digest

nickm at torproject.org nickm at torproject.org
Fri Feb 24 15:43:32 UTC 2017


commit 0f03581e748d4867a009d3d9473d61a400a3f5c1
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Feb 24 10:43:27 2017 -0500

    document sha256 digest in extra-info-digest
---
 dir-spec.txt | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/dir-spec.txt b/dir-spec.txt
index d91f76f..9c8fd4a 100644
--- a/dir-spec.txt
+++ b/dir-spec.txt
@@ -658,16 +658,20 @@
 
        [Versions before 0.2.0.1-alpha don't recognize this]
 
-   "extra-info-digest" digest NL
+   "extra-info-digest" SP sha1digest [SP sha256-digest] NL
 
        [At most once]
 
-       "Digest" is a hex-encoded digest (using upper-case characters) of the
-       router's extra-info document, as signed in the router's extra-info
+       "sha1-digest" is a hex-encoded digest (using upper-case characters) of
+       the router's extra-info document, as signed in the router's extra-info
        (that is, not including the signature).  (If this field is absent, the
        router is not uploading a corresponding extra-info document.)
 
-       [Versions before 0.2.0.1-alpha don't recognize this]
+       "sha256-digest" is a base64-encoded SHA256 digest of the extra-info
+       document, computed over the same data.
+
+       [Versions before 0.2.7.2-alpha did not include a SHA256 digest.]
+       [Versions before 0.2.0.1-alpha don't recognize this field at all.]
 
    "hidden-service-dir" *(SP VersionNum) NL
 



More information about the tor-commits mailing list