Searched refs:_hashlib (Results 1 - 7 of 7) sorted by relevance
/third_party/python/Lib/test/support/ |
H A D | hashlib_helper.py | 6 import _hashlib namespace 8 _hashlib = None variable 41 if openssl and _hashlib is not None: 42 _hashlib.new(digestname, usedforsecurity=usedforsecurity)
|
/third_party/python/Lib/ |
H A D | hashlib.py | 133 f = getattr(_hashlib, 'openssl_' + name) 160 return _hashlib.new(name, data, **kwargs) 162 # If the _hashlib module (OpenSSL) doesn't support the named 170 import _hashlib namespace 174 _hashlib.openssl_md_meth_names) 176 _hashlib = None variable 182 from _hashlib import pbkdf2_hmac 252 from _hashlib import scrypt
|
H A D | hmac.py | 8 import _hashlib as _hashopenssl 17 import hashlib as _hashlib namespace 75 digest_cons = lambda d=b'': _hashlib.new(digestmod, d) 205 digest_cons = lambda d=b'': _hashlib.new(digest, d)
|
/third_party/python/Lib/test/ |
H A D | time_hashlib.py | 51 elif hName == '_hashlib' and len(sys.argv) > 3: 52 import _hashlib namespace 53 exec('creatorFunc = _hashlib.%s' % sys.argv[2]) 54 print("testing speed of _hashlib.%s" % sys.argv[2], getattr(_hashlib, sys.argv[2])) 55 elif hName == '_hashlib' and len(sys.argv) == 3: 56 import _hashlib namespace 57 exec('creatorFunc = lambda x=_hashlib.new : x(%r)' % sys.argv[2]) 58 print("testing speed of _hashlib.new(%r)" % sys.argv[2]) 72 print(" '_hashlib' 'openssl_hNam [all...] |
H A D | test_hashlib.py | 46 openssl_hashlib = import_fresh_module('hashlib', fresh=['_hashlib']) 48 builtin_hashlib = import_fresh_module('hashlib', blocked=['_hashlib']) 53 from _hashlib import HASH, HASHXOF, openssl_md_meth_names, get_fips_mode 148 _hashlib = self._conditional_import_module('_hashlib') 149 self._hashlib = _hashlib 150 if _hashlib: 153 self.assertTrue(hasattr(_hashlib, 'openssl_md5')) 154 self.assertTrue(hasattr(_hashlib, 'openssl_sha [all...] |
H A D | pythoninfo.py | 832 import _hashlib namespace 834 _hashlib = None 836 if _hashlib is not None: 837 call_func(info_add, 'fips.openssl_fips_mode', _hashlib, 'get_fips_mode')
|
H A D | test_hmac.py | 14 import _hashlib as _hashopenssl 15 from _hashlib import HMAC as C_HMAC 16 from _hashlib import hmac_new as c_hmac_new 17 from _hashlib import compare_digest as openssl_compare_digest 449 @unittest.skipUnless(C_HMAC is not None, 'need _hashlib') 451 # internal types like _hashlib.C_HMAC are not constructable 555 @unittest.skipIf(openssl_compare_digest is None, "test requires _hashlib")
|
Completed in 7 milliseconds