D | hmac.py | 38 def __init__(self, key, msg=None, digestmod=''): argument 55 if not digestmod: 58 if _hashopenssl and isinstance(digestmod, (str, _functype)): 60 self._init_hmac(key, msg, digestmod) 62 self._init_old(key, msg, digestmod) 64 self._init_old(key, msg, digestmod) 66 def _init_hmac(self, key, msg, digestmod): argument 67 self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod) 71 def _init_old(self, key, msg, digestmod): argument 72 if callable(digestmod): [all …]
|