Searched refs:hashlib (Results 1 - 25 of 91) sorted by relevance

1234

/external/autotest/server/site_tests/firmware_TPMExtend/
H A Dfirmware_TPMExtend.py5 import hashlib, logging, os namespace
21 """Returns true iff PCR |num| was extended with hashlib |hash_obj|."""
28 extended = hashlib.sha1('\0' * 20 + hash_obj.digest()[:20]).hexdigest()
38 if not self._check_pcr(1, hashlib.sha256(hwid)):
47 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(0) + chr(1))):
57 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(1) + chr(0))):
69 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(0) + chr(1))):
79 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(1) + chr(0))):
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/glacier/
H A Dutils.py22 import hashlib namespace
80 hashes.append(hashlib.sha256(bytestring[start:end]).digest())
82 return [hashlib.sha256(b'').digest()]
100 new_hashes.append(hashlib.sha256(first + second).digest())
131 linear_hash = hashlib.sha256()
141 chunks.append(hashlib.sha256(chunk).digest())
144 chunks = [hashlib.sha256(b'').digest()]
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
H A Dpkcs1.py31 import hashlib namespace
47 'MD5': hashlib.md5,
48 'SHA-1': hashlib.sha1,
49 'SHA-256': hashlib.sha256,
50 'SHA-384': hashlib.sha384,
51 'SHA-512': hashlib.sha512,
/external/autotest/client/site_tests/login_OwnershipNotRetaken/
H A Dlogin_OwnershipNotRetaken.py5 import gobject, hashlib, os namespace
40 hash = hashlib.md5(key.read())
57 hash2 = hashlib.md5(key2.read())
/external/autotest/server/
H A Dsite_host_attributes.py46 import hashlib, logging, os, utils namespace
102 splitnames = ['netbook_' + hashlib.sha256(
/external/chromium-trace/catapult/dashboard/dashboard/
H A Dshort_uri.py7 import hashlib namespace
56 return hashlib.sha256(state_string).hexdigest()
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/
H A Dwebsocket_unittest.py7 import hashlib namespace
21 hashed = base64.encodestring(hashlib.sha1(value).digest()).strip().lower()
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
H A Dsecurecookie.py12 import hashlib namespace
102 signature = hmac.new(self.secret_key, digestmod=hashlib.sha1)
H A Dsecurity.py16 import hashlib namespace
164 A method from ``hashlib``, e.g., `sha1` or `md5`, or `plain`.
178 method = getattr(hashlib, method, None)
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/
H A Dtsig.py180 import hashlib namespace
181 hashes[dns.name.from_text('hmac-sha224')] = hashlib.sha224
182 hashes[dns.name.from_text('hmac-sha256')] = hashlib.sha256
183 hashes[dns.name.from_text('hmac-sha384')] = hashlib.sha384
184 hashes[dns.name.from_text('hmac-sha512')] = hashlib.sha512
185 hashes[dns.name.from_text('hmac-sha1')] = hashlib.sha1
186 hashes[dns.name.from_text('HMAC-MD5.SIG-ALG.REG.INT')] = hashlib.md5
190 # hashlib doesn't conform to PEP 247: API for
H A Dentropy.py30 import hashlib namespace
31 self.hash = hashlib.sha1()
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome/
H A Dcrx_id.py14 import hashlib namespace
123 pub_key_hash = hashlib.sha256(pub_key).digest()
128 pub_key_hash = hashlib.sha256(pub_key).digest()
/external/autotest/client/site_tests/kernel_CryptoAPI/
H A Dkernel_CryptoAPI.py14 import hashlib namespace
140 Run a digest through both the kernel UAPI and through hashlib, throwing
144 @param lib: a hashlib digest object
170 hashlib
176 ( "sha1", hashlib.sha1()),
177 ( "md5", hashlib.md5()),
178 ( "sha512", hashlib.sha512()),
/external/autotest/client/site_tests/video_VideoEncodeAccelerator/
H A Dvideo_VideoEncodeAccelerator.py6 import hashlib namespace
35 md5sum = hashlib.md5(r.read()).hexdigest()
/external/clang/utils/
H A DCaptureCmd19 import hashlib namespace
26 key = hashlib.sha1(string).hexdigest()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/db/
H A Dtest_password.py47 import hashlib namespace
56 import hmac, hashlib namespace
59 myhashfunc = hashlib.md5
62 hashfunc = myhashfunc #hashlib.md5 #lambda cls,msg: hmac.new('mysecret',msg)
73 password=MyPasswordProperty()#hashfunc=hashlib.md5)
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1-modules/tools/
H A Docspclient.py6 import sys, hashlib namespace
40 userIssuerHash = hashlib.sha1(
46 issuerKeyHash = hashlib.sha1(
H A Docspserver.py6 import sys, hashlib namespace
40 userIssuerHash = hashlib.sha1(
46 issuerKeyHash = hashlib.sha1(
/external/skia/bin/
H A Dsync-and-gyp32 import hashlib namespace
54 deps_hasher = hashlib.sha1()
109 hasher = hashlib.sha1()
/external/v8/test/promises-aplus/
H A Dtestcfg.py29 import hashlib namespace
111 hash = hashlib.sha256()
133 hash = hashlib.sha256()
/external/chromium-trace/catapult/third_party/Paste/paste/auth/
H A Dauth_tkt.py42 import hashlib namespace
44 # mimic hashlib (will work for md5, fail for secure hashes)
45 import md5 as hashlib namespace
55 DEFAULT_DIGEST = hashlib.md5
112 # correct specification of digest from hashlib or fail
113 self.digest_algo = getattr(hashlib, digest_algo)
158 # correct specification of digest from hashlib or fail
159 digest_algo = getattr(hashlib, digest_algo)
192 # @@: Digest object constructor compatible with named ones in hashlib only
261 ``hashlib`` o
[all...]
/external/autotest/client/site_tests/audio_PlaybackPower/
H A Daudio_PlaybackPower.py5 import hashlib, logging, os, time namespace
86 md5sum = hashlib.md5(r.read()).hexdigest()
/external/autotest/client/site_tests/power_HotCPUSuspend/
H A Dpower_HotCPUSuspend.py5 import hashlib, logging, multiprocessing, os, re, time namespace
23 sha512_hash = hashlib.sha512(sha512_hash).digest()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/sns/
H A Dtest_sns_sqs_subscription.py28 import hashlib namespace
65 expected_sid = hashlib.md5((topic_arn + queue_arn).encode('utf-8')).hexdigest()
/external/deqp/scripts/khr_util/
H A Dregistry_cache.py25 import hashlib namespace
59 return hashlib.sha256(data).hexdigest()

Completed in 588 milliseconds

1234