Lines Matching refs:authkey
429 def __init__(self, address=None, family=None, backlog=1, authkey=None): argument
440 if authkey is not None and not isinstance(authkey, bytes):
443 self._authkey = authkey
483 def Client(address, family=None, authkey=None): argument
494 if authkey is not None and not isinstance(authkey, bytes):
497 if authkey is not None:
498 answer_challenge(c, authkey)
499 deliver_challenge(c, authkey)
721 def deliver_challenge(connection, authkey): argument
723 if not isinstance(authkey, bytes):
725 "Authkey must be bytes, not {0!s}".format(type(authkey)))
728 digest = hmac.new(authkey, message, 'md5').digest()
736 def answer_challenge(connection, authkey): argument
738 if not isinstance(authkey, bytes):
740 "Authkey must be bytes, not {0!s}".format(type(authkey)))
744 digest = hmac.new(authkey, message, 'md5').digest()