/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
time_hashlib.py | 2 # hashlib functions; it does not test for correctness. 5 import hashlib 58 elif hasattr(hashlib, hName) and callable(getattr(hashlib, hName)): 59 creatorFunc = getattr(hashlib, hName) 60 print "testing speed of hashlib."+hName, getattr(hashlib, hName) 62 exec "creatorFunc = lambda x=hashlib.new : x(%r)" % hName 63 print "testing speed of hashlib.new(%r)" % hName 73 print " 'hName' tests the hashlib.hName() implementation if it exists [all...] |
test_hashlib.py | 1 # Test hashlib module 10 import hashlib 61 # of hashlib.new given the algorithm name. 63 constructors.add(getattr(hashlib, algorithm)) 66 return hashlib.new(_alg) 67 return hashlib.new(_alg, data) 106 self.assertEqual(hashlib.algorithms, 111 self.assertRaises(ValueError, hashlib.new, 'spam spam spam spam spam') 112 self.assertRaises(TypeError, hashlib.new, 1) 115 get_builtin_constructor = hashlib.__dict__ [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
time_hashlib.py | 2 # hashlib functions; it does not test for correctness. 5 import hashlib 58 elif hasattr(hashlib, hName) and callable(getattr(hashlib, hName)): 59 creatorFunc = getattr(hashlib, hName) 60 print "testing speed of hashlib."+hName, getattr(hashlib, hName) 62 exec "creatorFunc = lambda x=hashlib.new : x(%r)" % hName 63 print "testing speed of hashlib.new(%r)" % hName 73 print " 'hName' tests the hashlib.hName() implementation if it exists [all...] |
test_hashlib.py | 1 # Test hashlib module 10 import hashlib 61 # of hashlib.new given the algorithm name. 63 constructors.add(getattr(hashlib, algorithm)) 66 return hashlib.new(_alg) 67 return hashlib.new(_alg, data) 106 self.assertEqual(hashlib.algorithms, 111 self.assertRaises(ValueError, hashlib.new, 'spam spam spam spam spam') 112 self.assertRaises(TypeError, hashlib.new, 1) 115 get_builtin_constructor = hashlib.__dict__ [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_hashlib.py | 1 # Test hashlib module
10 import hashlib
61 # of hashlib.new given the algorithm name.
63 constructors.add(getattr(hashlib, algorithm))
66 return hashlib.new(_alg)
67 return hashlib.new(_alg, data)
106 self.assertEqual(hashlib.algorithms,
112 hashlib.new('spam spam spam spam spam')
116 self.assertTrue(0 == "hashlib didn't reject bogus hash name")
119 get_builtin_constructor = hashlib.__dict__[ [all...] |
/external/python/cpython2/Lib/test/ |
test_hashlib.py | 1 # Test hashlib module 10 import hashlib 63 # of hashlib.new given the algorithm name. 65 constructors.add(getattr(hashlib, algorithm)) 68 return hashlib.new(_alg) 69 return hashlib.new(_alg, data) 108 self.assertEqual(hashlib.algorithms, 113 self.assertEqual(hashlib.algorithms_guaranteed, 118 self.assertTrue(set(hashlib.algorithms_guaranteed). 119 issubset(hashlib.algorithms_available) [all...] |
/external/autotest/client/site_tests/login_OwnershipNotRetaken/ |
login_OwnershipNotRetaken.py | 5 import gobject, hashlib, logging, os 47 hash = hashlib.md5(key.read()) 64 hash2 = hashlib.md5(key2.read())
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_hashlib.py | 1 # Test hashlib module 10 import hashlib 61 # of hashlib.new given the algorithm name. 63 constructors.add(getattr(hashlib, algorithm)) 66 return hashlib.new(_alg) 67 return hashlib.new(_alg, data) 106 self.assertEqual(hashlib.algorithms, 111 self.assertRaises(ValueError, hashlib.new, 'spam spam spam spam spam') 112 self.assertRaises(TypeError, hashlib.new, 1) 115 get_builtin_constructor = hashlib.__dict__ [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_hashlib.py | 1 # Test hashlib module 10 import hashlib 61 # of hashlib.new given the algorithm name. 63 constructors.add(getattr(hashlib, algorithm)) 66 return hashlib.new(_alg) 67 return hashlib.new(_alg, data) 106 self.assertEqual(hashlib.algorithms, 111 self.assertRaises(ValueError, hashlib.new, 'spam spam spam spam spam') 112 self.assertRaises(TypeError, hashlib.new, 1) 115 get_builtin_constructor = hashlib.__dict__ [all...] |
/build/make/tools/releasetools/ |
check_ota_package_signature.py | 29 from hashlib import sha1 30 from hashlib import sha256
|
/cts/tools/utils/ |
rm_dup_holo_imgs.py | 17 import hashlib 59 return hashlib.sha1(f.read()).hexdigest()
|
/external/skia/bin/ |
fetch-clang-format | 8 import hashlib 25 h = hashlib.sha1()
|
fetch-gn | 8 import hashlib 24 h = hashlib.sha1()
|
sync | 16 import hashlib 33 deps_hasher = hashlib.sha1()
|
/external/autotest/server/ |
site_host_attributes.py | 46 import hashlib, logging, os, utils 102 splitnames = ['netbook_' + hashlib.sha256(
|
/external/clang/utils/ |
CaptureCmd | 19 import hashlib 26 key = hashlib.sha1(string).hexdigest()
|
/external/skia/infra/bots/recipe_modules/isolate/resources/ |
find_isolated_tests.py | 17 import hashlib 27 digest = hashlib.sha1()
|
/build/make/tools/ |
merge-event-log-tags.py | 30 import hashlib 32 import md5 as hashlib 147 d = hashlib.md5(str).digest()[:4]
|
/external/chromium-trace/catapult/systrace/systrace/ |
output_generator_unittest.py | 7 import hashlib 110 output_generator_md5sum = hashlib.md5( 112 data_builder_md5sum = hashlib.md5(
|
/system/core/libsparse/ |
simg_dump.py | 20 import hashlib 148 h = hashlib.sha1() 161 h = hashlib.sha1()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
hmac.py | 33 A hashlib constructor returning a new hash object.
34 Defaults to hashlib.md5.
41 import hashlib
42 digestmod = hashlib.md5
|
/external/autotest/client/site_tests/audio_PlaybackPower/ |
audio_PlaybackPower.py | 5 import hashlib, logging, os, time 86 md5sum = hashlib.md5(r.read()).hexdigest()
|
/external/autotest/client/site_tests/power_HotCPUSuspend/ |
power_HotCPUSuspend.py | 5 import hashlib, logging, multiprocessing, os, re, time 23 sha512_hash = hashlib.sha512(sha512_hash).digest()
|
/external/deqp/scripts/khr_util/ |
registry_cache.py | 25 import hashlib 60 return hashlib.sha256(data).hexdigest()
|
/external/libvpx/libvpx/test/android/ |
get_files.py | 16 import hashlib 33 sha_hash = hashlib.sha1()
|