DNS TSIG support.
(string, string, hmac.HMAC object)
|
sign(wire,
keyname,
secret,
time,
fudge,
original_id,
error,
other_data,
request_mac,
ctx=None,
multi=False,
first=True,
algorithm=<DNS name HMAC-MD5.SIG-ALG.REG.INT.>)
Return a (tsig_rdata, mac, ctx) tuple containing the HMAC TSIG rdata
for the input parameters, the HMAC MAC calculated by applying the
TSIG signature algorithm, and the TSIG digest context. |
source code
|
|
|
hmac_md5(wire,
keyname,
secret,
time,
fudge,
original_id,
error,
other_data,
request_mac,
ctx=None,
multi=False,
first=True,
algorithm=<DNS name HMAC-MD5.SIG-ALG.REG.INT.>) |
source code
|
|
hmac.HMAC object
|
validate(wire,
keyname,
secret,
now,
request_mac,
tsig_start,
tsig_rdata,
tsig_rdlen,
ctx=None,
multi=False,
first=True)
Validate the specified TSIG rdata against the other input parameters. |
source code
|
|
(string, hash constructor)
|
get_algorithm(algorithm)
Returns the wire format string and the hash module to use for the
specified TSIG algorithm |
source code
|
|
|
|
|
HMAC_MD5 = <DNS name HMAC-MD5.SIG-ALG.REG.INT.>
|
|
HMAC_SHA1 = <DNS name hmac-sha1.>
|
|
HMAC_SHA224 = <DNS name hmac-sha224.>
|
|
HMAC_SHA256 = <DNS name hmac-sha256.>
|
|
HMAC_SHA384 = <DNS name hmac-sha384.>
|
|
HMAC_SHA512 = <DNS name hmac-sha512.>
|
|
_hashes = { <DNS name hmac-sha1.>: ' SHA1 ' , <DNS name hmac-sha22...
|
|
default_algorithm = <DNS name HMAC-MD5.SIG-ALG.REG.INT.>
|
|
BADSIG = 16
|
|
BADKEY = 17
|
|
BADTIME = 18
|
|
BADTRUNC = 22
|
|
__package__ = ' dns '
|