]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Improve nsec3_hash() docs.
authorBrian Wellington <bwelling@xbill.org>
Mon, 11 May 2020 19:14:59 +0000 (12:14 -0700)
committerBrian Wellington <bwelling@xbill.org>
Mon, 11 May 2020 19:14:59 +0000 (12:14 -0700)
dns/dnssec.py

index c6f818d9cf305d9fd383af06ad8f16c485dafdf5..51d7e2f6d1196ae4212fc1ce49f618e037e9c182 100644 (file)
@@ -523,7 +523,7 @@ def _validate(rrset, rrsigset, keys, origin=None, now=None):
 
 def nsec3_hash(domain, salt, iterations, algorithm):
     """
-    This method calculates the NSEC3 hash according to
+    Calculate the NSEC3 hash, according to
     https://tools.ietf.org/html/rfc5155#section-5
 
     *domain*, a ``dns.name.Name`` or ``str``, the name to hash.
@@ -533,8 +533,8 @@ def nsec3_hash(domain, salt, iterations, algorithm):
 
     *iterations*, an ``int``, the number of iterations.
 
-    *algorithm*, an ``int``, the hash algorithm.  Currently only SHA1 is
-    supported.
+    *algorithm*, an ``int``, the hash algorithm.  The only defined algorithm
+    is SHA1.
 
     Returns a ``str``, the encoded NSEC3 hash.
     """