From: Brian Wellington Date: Mon, 11 May 2020 19:14:59 +0000 (-0700) Subject: Improve nsec3_hash() docs. X-Git-Tag: v2.0.0rc1~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=689473dd8402acf9fafaf3e4687ec343ad1647fc;p=thirdparty%2Fdnspython.git Improve nsec3_hash() docs. --- diff --git a/dns/dnssec.py b/dns/dnssec.py index c6f818d9..51d7e2f6 100644 --- a/dns/dnssec.py +++ b/dns/dnssec.py @@ -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. """