Home
last modified time | relevance | path

Searched refs:sha1 (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/external/python/cpython3/Modules/
Dsha1module.c110 static void sha1_compress(struct sha1_state *sha1, unsigned char *buf) in sha1_compress() argument
120 a = sha1->state[0]; in sha1_compress()
121 b = sha1->state[1]; in sha1_compress()
122 c = sha1->state[2]; in sha1_compress()
123 d = sha1->state[3]; in sha1_compress()
124 e = sha1->state[4]; in sha1_compress()
179 sha1->state[0] = sha1->state[0] + a; in sha1_compress()
180 sha1->state[1] = sha1->state[1] + b; in sha1_compress()
181 sha1->state[2] = sha1->state[2] + c; in sha1_compress()
182 sha1->state[3] = sha1->state[3] + d; in sha1_compress()
[all …]
/external/webrtc/webrtc/base/
Dsha1digest_unittest.cc18 Sha1Digest sha1; in Sha1() local
19 return ComputeDigest(&sha1, input); in Sha1()
23 Sha1Digest sha1; in TEST() local
25 EXPECT_EQ(20U, sha1.Size()); in TEST()
39 Sha1Digest sha1; in TEST() local
44 sha1.Update(&input[i], 1); in TEST()
46 EXPECT_EQ(sha1.Size(), sha1.Finish(output, sizeof(output))); in TEST()
52 Sha1Digest sha1; in TEST() local
55 ComputeDigest(&sha1, input)); in TEST()
58 ComputeDigest(&sha1, input)); in TEST()
[all …]
/external/grpc-grpc-java/
Drepositories.bzl115 sha1 = "86f070507e28b930e50d218ee5b6788ef0dd05e6",
122 sha1 = "8e2b181feff6005c9cbc6f5c1c1e2d3ec9138d46",
129 sha1 = "04e6152c3aead24148627e84f5651e79698c00d9",
136 sha1 = "5871fb60dc68d67da54a663c3fd636a10a532948",
143 sha1 = "751f548c85fa49f330cecbb1875893f971b33c4e",
150 sha1 = "88e3c593e9b3586e1c6177f89267da6fc6986f0c",
157 sha1 = "89507701249388e1ed5ddcf8c41f4ce1be7831ef",
184 sha1 = "357e60f95cebb87c72151e49ba1f570d899734f8",
191 sha1 = "499d5e041f962fefd0f245a9325e8125608ebb54",
198 sha1 = "b5768f644b114e6cf5c3962c2ebcb072f788dcbb",
[all …]
/external/guava/guava-tests/test/com/google/common/hash/
DMessageDigestHashFunctionTest.java45 .put("SHA", Hashing.sha1()) // Not the official name, but still works
46 .put("SHA1", Hashing.sha1()) // Not the official name, but still works
47 .put("sHa-1", Hashing.sha1()) // Not the official name, but still works
48 .put("SHA-1", Hashing.sha1())
62 Hasher sha1 = Hashing.sha1().newHasher(); in testPutAfterHash() local
65 sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8) in testPutAfterHash()
69 sha1.putInt(42); in testPutAfterHash()
76 Hasher sha1 = Hashing.sha1().newHasher(); in testHashTwice() local
79 sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8) in testHashTwice()
83 sha1.hash(); in testHashTwice()
[all …]
/external/mesa3d/src/compiler/glsl/
Dshader_cache.cpp98 static const char zero[sizeof(prog->data->sha1)] = {0}; in shader_cache_write_program_metadata()
99 if (memcmp(prog->data->sha1, zero, sizeof(prog->data->sha1)) == 0) in shader_cache_write_program_metadata()
118 disk_cache_put_key(cache, prog->Shaders[i]->sha1); in shader_cache_write_program_metadata()
119 memcpy(cache_item_metadata.keys[i], prog->Shaders[i]->sha1, in shader_cache_write_program_metadata()
122 _mesa_sha1_format(sha1_buf, prog->Shaders[i]->sha1); in shader_cache_write_program_metadata()
127 disk_cache_put(cache, prog->data->sha1, metadata.data, metadata.size, in shader_cache_write_program_metadata()
131 _mesa_sha1_format(sha1_buf, prog->data->sha1); in shader_cache_write_program_metadata()
197 _mesa_sha1_format(sha1buf, sh->sha1); in shader_cache_read_program_metadata()
201 disk_cache_compute_key(cache, buf, strlen(buf), prog->data->sha1); in shader_cache_read_program_metadata()
205 uint8_t *buffer = (uint8_t *) disk_cache_get(cache, prog->data->sha1, in shader_cache_read_program_metadata()
[all …]
/external/opencensus-java/examples/
Dopencensus_workspace.bzl16 sha1 = "516c03b21d50a644d538de0f0369c620989cd8f0",
25 sha1 = "9dc9c6531ae0b304581adff0e9b7cff21a4073ac",
33 sha1 = "c1e9fc26da3060dde5a5948fd065c1b28cd10f39",
43 sha1 = "c079a62086121973a23d90f54e2b8c13050fa39d",
54 sha1 = "9585776b0a8153182412b5d5366061ff486914c1",
63 sha1 = "9330ee60c4e48ca60aac89b7bc5ec2567e84f28e",
72 sha1 = "561b03d3fd5178117a51f9f7ef9d9e5442ed2348",
81 sha1 = "ea715c51340a32106ffdf32375a5dad9dbdf160e",
90 sha1 = "9ce04e34240f674bc72680f8b843b1457383161a",
99 sha1 = "a87fc041f66b8c923e2a1de6b7c1582b7990fde8",
[all …]
/external/mesa3d/src/util/
Dmesa-sha1_test.c37 const char *sha1; in main() member
48 unsigned char sha1[20]; in main() local
50 sha1); in main()
53 _mesa_sha1_format(buf, sha1); in main()
55 if (memcmp(test_data[i].sha1, buf, SHA1_LENGTH) != 0) { in main()
59 test_data[i].sha1, buf); in main()
DMakefile.sources23 mesa-sha1.c \
24 mesa-sha1.h \
27 sha1/sha1.c \
28 sha1/sha1.h \
/external/vulkan-validation-layers/scripts/
Dexternal_revision_generator.py83 sha1 = hashlib.sha1();
84 sha1.update(rev_contents.encode('utf-8'))
85 return sha1.hexdigest()
89 sha1 = hashlib.sha1();
90 sha1.update(unique_uuid.encode())
91 return sha1.hexdigest()
/external/mesa3d/src/mesa/main/
Dprogram_binary.c55 uint8_t sha1[20]; member
74 const void *sha1, void *binary, unsigned binary_size, in write_program_binary() argument
89 memcpy(hdr->sha1, sha1, sizeof(hdr->sha1)); in write_program_binary()
129 is_program_binary_valid(GLenum binary_format, const void *sha1, in is_program_binary_valid() argument
139 if (memcmp(hdr->sha1, sha1, sizeof(hdr->sha1)) != 0) in is_program_binary_valid()
159 get_program_binary_payload(GLenum binary_format, const void *sha1, in get_program_binary_payload() argument
163 if (!is_program_binary_valid(binary_format, sha1, hdr, length)) in get_program_binary_payload()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal.c23 struct SHA1Context sha1; member
58 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
96 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
97 SHA1Update(&ctx->u.sha1, key, key_len); in crypto_hash_init()
98 SHA1Final(tk, &ctx->u.sha1); in crypto_hash_init()
110 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
111 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_init()
155 SHA1Update(&ctx->u.sha1, data, len); in crypto_hash_update()
209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
272 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
[all …]
DMakefile44 sha1.o \
45 sha1-internal.o \
46 sha1-pbkdf2.o \
47 sha1-prf.o \
48 sha1-tlsprf.o \
49 sha1-tprf.o \
/external/boringssl/src/crypto/cipher_extra/test/
Dmake_all_legacy_aead_tests.sh5 go run make_legacy_aead_tests.go -cipher aes128 -mac sha1 > aes_128_cbc_sha1_tls_tests.txt
6 go run make_legacy_aead_tests.go -cipher aes128 -mac sha1 -implicit-iv > aes_128_cbc_sha1_tls_impli…
9 go run make_legacy_aead_tests.go -cipher aes256 -mac sha1 > aes_256_cbc_sha1_tls_tests.txt
10 go run make_legacy_aead_tests.go -cipher aes256 -mac sha1 -implicit-iv > aes_256_cbc_sha1_tls_impli…
14 go run make_legacy_aead_tests.go -cipher 3des -mac sha1 > des_ede3_cbc_sha1_tls_tests.txt
15 go run make_legacy_aead_tests.go -cipher 3des -mac sha1 -implicit-iv > des_ede3_cbc_sha1_tls_implic…
/external/llvm/unittests/Support/
Draw_sha1_ostream_test.cpp35 auto Hash = toHex(Sha1Stream.sha1()); in TEST()
45 auto Hash = toHex(Sha1Stream.sha1()); in TEST()
49 Hash = toHex(Sha1Stream.sha1()); in TEST()
54 auto NonSplitHash = toHex(NonSplitSha1Stream.sha1()); in TEST()
62 auto Hash = toHex(Sha1Stream.sha1()); in TEST()
68 Hash = toHex(Sha1Stream.sha1()); in TEST()
/external/mesa3d/src/amd/vulkan/
Dradv_pipeline_cache.c42 unsigned char sha1[20]; member
114 _mesa_sha1_update(&ctx, layout->sha1, sizeof(layout->sha1)); in radv_hash_shaders()
121 _mesa_sha1_update(&ctx, module->sha1, sizeof(module->sha1)); in radv_hash_shaders()
137 const unsigned char *sha1) in radv_pipeline_cache_search_unlocked() argument
140 const uint32_t start = (*(uint32_t *) sha1); in radv_pipeline_cache_search_unlocked()
152 if (memcmp(entry->sha1, sha1, sizeof(entry->sha1)) == 0) { in radv_pipeline_cache_search_unlocked()
162 const unsigned char *sha1) in radv_pipeline_cache_search() argument
168 entry = radv_pipeline_cache_search_unlocked(cache, sha1); in radv_pipeline_cache_search()
247 const unsigned char *sha1, in radv_create_shader_variants_from_pipeline_cache() argument
257 entry = radv_pipeline_cache_search_unlocked(cache, sha1); in radv_create_shader_variants_from_pipeline_cache()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
Draw_sha1_ostream_test.cpp35 auto Hash = toHex(Sha1Stream.sha1()); in TEST()
52 auto Hash = toHex(Sha1Stream.sha1()); in TEST()
56 Hash = toHex(Sha1Stream.sha1()); in TEST()
61 auto NonSplitHash = toHex(NonSplitSha1Stream.sha1()); in TEST()
69 auto Hash = toHex(Sha1Stream.sha1()); in TEST()
75 Hash = toHex(Sha1Stream.sha1()); in TEST()
/external/capstone/packages/homebrew/
Dcapstone.rb6 sha1 "7f206c853c6b8d05de22e919c2455ab661654093"
10 sha1 "319b41766dd67e3017b83b1ce3df3cc81e6feb6a" => :yosemite
11 sha1 "4f1bbe6b886c174924b1996aac7ed8d9850ff773" => :mavericks
12 sha1 "5a73b99066037a6270f550e07bee8cbcb8e30a2c" => :mountain_lion
/external/skia/bin/
Dfetch-clang-format26 sha1 = open(sha1_path).read().strip()
29 h = hashlib.sha1()
35 if sha1_of_file(target_path) != sha1:
37 url = 'https://chromium-%s.storage-download.googleapis.com/%s' % (target, sha1)
45 if sha1_of_file(target_copy_path) != sha1:
/external/skqp/bin/
Dfetch-clang-format26 sha1 = open(sha1_path).read().strip()
29 h = hashlib.sha1()
35 if sha1_of_file(target_path) != sha1:
37 url = 'https://chromium-%s.storage-download.googleapis.com/%s' % (target, sha1)
45 if sha1_of_file(target_copy_path) != sha1:
Dfetch-gn19 sha1 = '2f27ff0b6118e5886df976da5effa6003d19d1ce' if 'linux' in sys.platform else \ variable
24 h = hashlib.sha1()
30 if sha1_of_file(dst) != sha1:
32 f.write(urllib2.urlopen('https://chromium-gn.storage-download.googleapis.com/' + sha1).read())
/external/boringssl/src/ssl/test/runner/
Dprf.go50 hashSHA1 := sha1.New
81 hashSHA1 := sha1.New()
205 ret.client = sha1.New()
206 ret.server = sha1.New()
278 out := make([]byte, 0, md5.Size+sha1.Size)
286 func finishedSum30(md5, sha1 hash.Hash, masterSecret []byte, magic []byte) []byte {
298 sha1.Write(magic)
299 sha1.Write(masterSecret)
300 sha1.Write(ssl30Pad1[:40])
301 sha1Digest := sha1.Sum(nil)
[all …]
/external/boringssl/src/crypto/fipsmodule/
DCMakeLists.txt17 sha1-x86_64.${ASM_EXT}
37 sha1-586.${ASM_EXT}
55 sha1-armv4-large.${ASM_EXT}
69 sha1-armv8.${ASM_EXT}
112 perlasm(sha1-586.${ASM_EXT} sha/asm/sha1-586.pl)
113 perlasm(sha1-armv4-large.${ASM_EXT} sha/asm/sha1-armv4-large.pl)
114 perlasm(sha1-armv8.${ASM_EXT} sha/asm/sha1-armv8.pl)
115 perlasm(sha1-x86_64.${ASM_EXT} sha/asm/sha1-x86_64.pl)
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
DDigestFactory.java21 private static Set sha1 = new HashSet(); field in DigestFactory
44 sha1.add("SHA1");
45 sha1.add("SHA-1");
46 sha1.add(OIWObjectIdentifiers.idSHA1.getId()); in OIWObjectIdentifiers.idSHA1.getId()
138 if (sha1.contains(digestName)) in getDigest()
211 return (sha1.contains(digest1) && sha1.contains(digest2)) in isSameDigest()
/external/autotest/server/site_tests/p2p_EndToEndTest/
Dp2p_EndToEndTest.py117 sha1 = ret.stdout.strip()[0:40]
118 logging.info('SHA1 is %s', sha1)
130 if client_sha1 != sha1:
133 "master's SHA1 (%s)." % (client_sha1, sha1))
136 barrier.slave_barrier(sha1, timeout=P2P_SERVING_TIMEOUT_SECS)
/external/autotest/server/site_tests/firmware_TPMExtend/
Dfirmware_TPMExtend.py26 extended = hashlib.sha1('\0' * 20 + hash_obj.digest()[:20]).hexdigest()
45 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(0) + chr(1))):
55 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(1) + chr(0))):
67 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(0) + chr(1))):
77 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(1) + chr(0))):

12345678910>>...13