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
|
|
|
|