Searched refs:_hashlib (Results 1 - 9 of 9) sorted by relevance
/external/python/cpython2/PC/VS7.1/ |
H A D | _ssl.mak | 23 all: _ssl$(SUFFIX) _hashlib$(SUFFIX) 33 _hashlib$(SUFFIX): $(HASH_SOURCE) $(SSL_LIB_DIR)/libeay32.lib ../../PC/*.h ../../Include/*.h 34 @if not exist "$(TEMP)/_hashlib/." mkdir "$(TEMP)/_hashlib" 35 cl /nologo /c $(HASH_SOURCE) $(CFLAGS) $(EXTRA_CFLAGS) /Fo$(TEMP)\_hashlib\$*.obj $(INCLUDES) 37 /dll /out:_hashlib$(SUFFIX) $(HASH_LIBS) $(EXTRA_LIBS) $(TEMP)\_hashlib\$*.obj
|
/external/python/cpython3/Lib/ |
H A D | hashlib.py | 121 f = getattr(_hashlib, 'openssl_' + name) 149 return _hashlib.new(name, data) 151 # If the _hashlib module (OpenSSL) doesn't support the named 159 import _hashlib namespace 163 _hashlib.openssl_md_meth_names) 170 from _hashlib import pbkdf2_hmac 234 from _hashlib import scrypt
|
H A D | hmac.py | 8 import hashlib as _hashlib namespace 47 digestmod = _hashlib.md5 52 self.digest_cons = lambda d=b'': _hashlib.new(digestmod, d)
|
/external/python/cpython2/Lib/test/ |
H A D | time_hashlib.py | 50 elif hName == '_hashlib' and len(sys.argv) > 3: 51 import _hashlib namespace 52 exec 'creatorFunc = _hashlib.%s' % sys.argv[2] 53 print "testing speed of _hashlib.%s" % sys.argv[2], getattr(_hashlib, sys.argv[2]) 54 elif hName == '_hashlib' and len(sys.argv) == 3: 55 import _hashlib namespace 56 exec 'creatorFunc = lambda x=_hashlib.new : x(%r)' % sys.argv[2] 57 print "testing speed of _hashlib.new(%r)" % sys.argv[2] 71 print " '_hashlib' 'openssl_hNam [all...] |
H A D | test_hashlib.py | 72 _hashlib = self._conditional_import_module('_hashlib') 73 if _hashlib: 76 assert hasattr(_hashlib, 'openssl_md5') 77 assert hasattr(_hashlib, 'openssl_sha1') 79 constructor = getattr(_hashlib, 'openssl_'+algorithm, None)
|
/external/python/cpython3/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 | 28 c_hashlib = import_fresh_module('hashlib', fresh=['_hashlib']) 29 py_hashlib = import_fresh_module('hashlib', blocked=['_hashlib']) 118 _hashlib = self._conditional_import_module('_hashlib') 119 if _hashlib: 122 self.assertTrue(hasattr(_hashlib, 'openssl_md5')) 123 self.assertTrue(hasattr(_hashlib, 'openssl_sha1')) 125 constructor = getattr(_hashlib, 'openssl_'+algorithm, None)
|
/external/python/cpython2/Lib/ |
H A D | hashlib.py | 102 f = getattr(_hashlib, 'openssl_' + name) 124 return _hashlib.new(name, string) 126 # If the _hashlib module (OpenSSL) doesn't support the named 134 import _hashlib namespace 138 _hashlib.openssl_md_meth_names) 155 from _hashlib import pbkdf2_hmac
|
H A D | random.py | 49 import hashlib as _hashlib namespace 156 n = int(_hashlib.new('sha512', s).hexdigest(), 16)
|
Completed in 234 milliseconds