Home | History | Annotate | Download | only in Lib

Lines Matching refs:digestmod

33     def __init__(self, key, msg = None, digestmod = None):
38 digestmod: A module supporting PEP 247. *OR*
51 if digestmod is None:
52 _warnings.warn("HMAC() without an explicit digestmod argument "
56 digestmod = _hashlib.md5
58 if callable(digestmod):
59 self.digest_cons = digestmod
60 elif isinstance(digestmod, str):
61 self.digest_cons = lambda d=b'': _hashlib.new(digestmod, d)
63 self.digest_cons = lambda d=b'': digestmod.new(d)
142 def new(key, msg = None, digestmod = None):
153 return HMAC(key, msg, digestmod)