Lines Matching refs:_hashopenssl
8 import _hashlib as _hashopenssl
10 _hashopenssl = None
14 compare_digest = _hashopenssl.compare_digest
15 _functype = type(_hashopenssl.openssl_sha256) # builtin type
58 if _hashopenssl and isinstance(digestmod, (str, _functype)):
61 except _hashopenssl.UnsupportedDigestmodError:
67 self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)
196 if _hashopenssl is not None and isinstance(digest, (str, _functype)):
198 return _hashopenssl.hmac_digest(key, msg, digest)
199 except _hashopenssl.UnsupportedDigestmodError: