Home
last modified time | relevance | path

Searched refs:hash (Results 651 - 675 of 2318) sorted by relevance

1...<<21222324252627282930>>...93

/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
H A DLocation.hpp76 struct hash<vk::dbg::Location> struct
80 auto h = std::hash<vk::dbg::File *>()(l.file.get()); in operator ()()
/third_party/skia/tools/
H A DUrlDataManager.h31 * Adds a data blob to the cache with a particular content type. UrlDataManager will hash
73 // We use the data as a hash, this is not really optimal but is fine until proven otherwise
79 return SkOpts::hash(key.bytes(), key.size()); in Hash()
89 return SkOpts::hash(key.c_str(), strlen(key.c_str())); in Hash()
/third_party/skia/modules/skparagraph/include/
H A DFontArguments.h31 friend struct std::hash<FontArguments>;
46 template<> struct hash<skia::textlayout::FontArguments> { struct
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/
H A Dhash_test.cc15 #include "absl/hash/hash.h"
41 #include "absl/hash/hash_testing.h"
42 #include "absl/hash/internal/spy_hash_state.h"
157 size_t hash = absl::Hash<void*>()(data.get() + i * align); in TEST() local
158 bits_or |= hash; in TEST()
159 bits_and &= hash; in TEST()
306 // Also check that nested types maintain the same hash. in TEST()
409 // Private type that only supports AbslHashValue to make sure our chosen hash
434 // Create a hash vie
489 absl::Hash<PiecewiseHashTester> hash; TEST() local
964 struct hash<ValueWithBoolConversion> { global() struct
[all...]
/foundation/communication/ipc/ipc/test/rpc/socket_trans/src/
H A Drpc_mini_socket_trans.c64 uint16_t hash = DEFAULT_HASH_SEED; in Hash() local
68 hash = ((hash << DEFAULT_HASH_OFFSET) + hash) + c; in Hash()
70 return hash % DEFAULT_PORT_MIN + DEFAULT_PORT_MIN; in Hash()
H A Drpc_socket_trans.c62 uint16_t hash = DEFAULT_HASH_SEED; in Hash() local
66 hash = ((hash << DEFAULT_HASH_OFFSET) + hash) + c; in Hash()
68 return hash % DEFAULT_PORT_MIN + DEFAULT_PORT_MIN; in Hash()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp140 uint32_t hash = (uintptr_t(ptr) & 0xFFFFFFFF); in Anonymous() local
141 hash = (hash & 0xFFFF) ^ ((hash >> 16) & 0xFFFF); // 16 is right shift quantity in Anonymous()
142 return hash; in Anonymous()
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp115 uint32_t hash = (uintptr_t(ptr) & 0xFFFFFFFF); in Anonymous() local
116 hash = (hash & 0xFFFF) ^ ((hash >> RIGHT) & 0xFFFF); in Anonymous()
117 return hash; in Anonymous()
/third_party/elfutils/lib/
H A Ddynamicsizehash.c35 NAME name of the hash table structure.
36 TYPE data type of the hash table entries
49 /* First hash function: simply take the modul but prevent zero. Small values in lookup()
55 HASHTYPE hash; in lookup() local
61 /* Second hash function as suggested in [Knuth]. */ in lookup()
62 hash = 1 + hval % (htab->size - 2); in lookup()
66 if (idx <= hash) in lookup()
67 idx = htab->size + idx - hash; in lookup()
69 idx -= hash; in lookup()
214 /* Make the hash valu in NAME()
[all...]
/third_party/curl/scripts/
H A Dmk-ca-bundle.pl265 my $hash = "";
270 $hash = $1;
275 return $hash;
385 # get the hash from the download file
666 foreach my $hash (@included_signature_algorithms) {
667 $pipe = "|$openssl x509 -" . $hash . " -fingerprint -noout -inform PEM";
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
H A Dsfn_valuefactory.h127 uint64_t hash;
153 return lhs.hash == rhs.hash;
163 return key.hash;
275 using unordered_map_alloc = std::unordered_map<Key, T, std::hash<Key>, std::equal_to<Key>,
/third_party/node/test/pummel/
H A Dtest-policy-integrity-worker-commonjs.js27 function hash(algo, body) { function
286 integrities: hash('sha256', ''),
304 integrities: hash('sha256', parentBody[parentFormat]),
318 integrities: hash('sha256', workerSpawningBody),
323 let packageIntegrities = hash('sha256', packageBody);
H A Dtest-policy-integrity-worker-module.js27 function hash(algo, body) { function
286 integrities: hash('sha256', ''),
304 integrities: hash('sha256', parentBody[parentFormat]),
318 integrities: hash('sha256', workerSpawningBody),
322 let packageIntegrities = hash('sha256', packageBody);
/third_party/node/deps/npm/node_modules/hosted-git-info/lib/
H A Dhosts.js59 committish = url.hash.slice(1)
98 return { user, project, committish: url.hash.slice(1) }
129 return { user, project, committish: url.hash.slice(1) }
184 return { user, project, committish: url.hash.slice(1) }
219 return { user, project, committish: url.hash.slice(1) }
/third_party/node/deps/npm/node_modules/cacache/lib/
H A Dentry-index.js18 const hashToSegments = require('./util/hash-to-segments')
65 const hash = hashEntry(stringified)
66 return `${hash}\t${stringified}`
290 return hash(key, 'sha256')
296 return hash(str, 'sha1')
299 function hash (str, digest) {
/third_party/python/Lib/test/test_importlib/
H A Dtest_metadata_api.py201 assert not file.hash or file.hash.value
202 assert not file.hash or file.hash.mode == 'sha256'
211 self.assertRegex(repr(util.hash), '<FileHash mode: sha256 value: .*>')
/third_party/skia/include/private/
H A DGrResourceKey.h28 uint32_t hash() const { in hash() function in GrResourceKey
48 uint32_t* hash = &fKey->fKey[kHash_MetaDataIdx]; in finish() local
49 *hash = GrResourceKeyHash(hash + 1, fKey->internalSize() - sizeof(uint32_t)); in finish()
114 /** size of the key data, excluding meta-data (hash, domain, etc). */
117 /** ptr to the key data, excluding meta-data (hash, domain, etc). */
128 SkDebugf("hash: %d ", this->hash()); in dump()
/third_party/mbedtls/library/
H A Dpsa_crypto_driver_wrappers.c212 size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, in psa_driver_wrapper_sign_hash()
226 return (drv->asymmetric->p_sign(drv_context, *((psa_key_slot_number_t *)key_buffer), alg, hash, hash_length, in psa_driver_wrapper_sign_hash()
241 mbedtls_test_transparent_signature_sign_hash(attributes, key_buffer, key_buffer_size, alg, hash, in psa_driver_wrapper_sign_hash()
252 status = p256_transparent_sign_hash(attributes, key_buffer, key_buffer_size, alg, hash, hash_length, in psa_driver_wrapper_sign_hash()
260 return (psa_sign_hash_builtin(attributes, key_buffer, key_buffer_size, alg, hash, hash_length, signature, in psa_driver_wrapper_sign_hash()
267 return (mbedtls_test_opaque_signature_sign_hash(attributes, key_buffer, key_buffer_size, alg, hash, in psa_driver_wrapper_sign_hash()
279 size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, in psa_driver_wrapper_verify_hash()
292 return (drv->asymmetric->p_verify(drv_context, *((psa_key_slot_number_t *)key_buffer), alg, hash, hash_length, in psa_driver_wrapper_verify_hash()
306 status = mbedtls_test_transparent_signature_verify_hash(attributes, key_buffer, key_buffer_size, alg, hash, in psa_driver_wrapper_verify_hash()
317 status = p256_transparent_verify_hash(attributes, key_buffer, key_buffer_size, alg, hash, hash_lengt in psa_driver_wrapper_verify_hash()
211 psa_driver_wrapper_sign_hash(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, uint8_t *signature, size_t signature_size, size_t *signature_length) psa_driver_wrapper_sign_hash() argument
278 psa_driver_wrapper_verify_hash(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length) psa_driver_wrapper_verify_hash() argument
387 psa_driver_wrapper_sign_hash_start(psa_sign_hash_interruptible_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length) psa_driver_wrapper_sign_hash_start() argument
467 psa_driver_wrapper_verify_hash_start(psa_verify_hash_interruptible_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length) psa_driver_wrapper_verify_hash_start() argument
1296 psa_driver_wrapper_hash_compute(psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *hash, size_t hash_size, size_t *hash_length) psa_driver_wrapper_hash_compute() argument
1394 psa_driver_wrapper_hash_finish(psa_hash_operation_t *operation, uint8_t *hash, size_t hash_size, size_t *hash_length) psa_driver_wrapper_hash_finish() argument
[all...]
/base/hiviewdfx/hiview/utility/common_utils/test/unittest/common/
H A Dutility_common_utils_test.cpp76 char hash[SHA256_DIGEST_LENGTH] = {0}; in HWTEST_F() local
77 auto ret = calcFingerprint.CalcFileSha("", hash, SHA256_DIGEST_LENGTH); in HWTEST_F()
79 ret = calcFingerprint.CalcFileSha(GenerateLogFileName(caseName, SUFFIX_0), hash, SHA256_DIGEST_LENGTH); in HWTEST_F()
81 ret = calcFingerprint.CalcFileSha("//....../asdsa", hash, SHA256_DIGEST_LENGTH); in HWTEST_F()
87 ret = calcFingerprint.CalcFileSha(GenerateLogFileName(caseName, SUFFIX_0), hash, invalidLen); in HWTEST_F()
101 char hash[SHA256_DIGEST_LENGTH] = {0}; in HWTEST_F() local
103 auto ret = calcFingerprint.CalcBufferSha(buffer1, buffer1.size(), hash, SHA256_DIGEST_LENGTH); in HWTEST_F()
/base/startup/hvb/libhvb/src/crypto/
H A Dhvb_rsa_verify.c87 /* rsa verify last step compare hash value */
89 uint8_t *hash, uint32_t digestlen) in emsa_pss_hash_cmp()
104 ret += hvb_memcmp(hash, hash_tmp, digestlen); in emsa_pss_hash_cmp()
105 ret += hvb_memcmp(hash, hash_tmp, digestlen); in emsa_pss_hash_cmp()
234 uint8_t *hash = NULL; in emsa_pss_verify() local
257 hash = &pem[db_len]; in emsa_pss_verify()
269 ret = rsa_gen_mask_mgf_v1(hash, digestlen, db, db_len); in emsa_pss_verify()
298 ret = emsa_pss_hash_cmp(m_tmp, m_tmp_len, hash, digestlen); in emsa_pss_verify()
88 emsa_pss_hash_cmp(uint8_t *m_tmp, uint32_t m_tmp_len, uint8_t *hash, uint32_t digestlen) emsa_pss_hash_cmp() argument
/third_party/jerryscript/jerry-core/ecma/base/
H A Decma-literal-storage.c26 void AddJerryLiteralCache(int32_t hash, void *p) {} in AddJerryLiteralCache() argument
28 void DelJerryLiteralCache(int32_t hash) {} in DelJerryLiteralCache() argument
30 void *GetJerryLiteralCache(int32_t hash) in GetJerryLiteralCache() argument
90 DelJerryLiteralCache(string_p->u.hash); in ecma_free_string_list()
156 ecma_string_t *cached_literal = (ecma_string_t *)GetJerryLiteralCache(nonref_string_p->u.hash); in ecma_find_or_create_literal_string()
212 AddJerryLiteralCache(string_p->u.hash, string_p); in ecma_find_or_create_literal_string()
228 AddJerryLiteralCache(string_p->u.hash, string_p); in ecma_find_or_create_literal_string()
/third_party/ltp/metadata/
H A Dmetaparse.c412 int hash = 0; in parse_array_size() local
446 hash = 1; in parse_array_size()
450 if (!hash) in parse_array_size()
645 int hash = 0; in parse_include_macros() local
653 hash = 1; in parse_include_macros()
657 if (!hash) in parse_include_macros()
663 hash = 0; in parse_include_macros()
861 fprintf(stderr, "Failed to initialize hash table\n"); in main()
/third_party/mesa3d/src/gallium/frontends/xa/
H A Dxa_tgsi.c435 struct cso_hash *hash, unsigned processor) in cache_destroy()
437 struct cso_hash_iter iter = cso_hash_first_node(hash); in cache_destroy()
447 iter = cso_hash_erase(hash, iter); in cache_destroy()
449 cso_hash_deinit(hash); in cache_destroy()
463 unsigned type, struct cso_hash *hash, unsigned key) in shader_from_cache()
467 struct cso_hash_iter iter = cso_hash_find(hash, key); in shader_from_cache()
474 cso_hash_insert(hash, key, shader); in shader_from_cache()
434 cache_destroy(struct pipe_context *pipe, struct cso_hash *hash, unsigned processor) cache_destroy() argument
462 shader_from_cache(struct pipe_context *pipe, unsigned type, struct cso_hash *hash, unsigned key) shader_from_cache() argument
/third_party/mesa3d/src/mesa/vbo/
H A Dvbo_minmax_index.c111 uint32_t hash; in vbo_get_minmax_cached() local
145 hash = vbo_minmax_cache_hash(&key); in vbo_get_minmax_cached()
146 result = _mesa_hash_table_search_pre_hashed(bufferObj->MinMaxCache, hash, &key); in vbo_get_minmax_cached()
183 uint32_t hash; in vbo_minmax_cache_store() local
208 hash = vbo_minmax_cache_hash(&entry->key); in vbo_minmax_cache_store()
211 hash, &entry->key); in vbo_minmax_cache_store()
222 hash, &entry->key, entry); in vbo_minmax_cache_store()
/third_party/node/deps/undici/src/lib/fetch/
H A Dutil.js19 supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash))
52 if (location && !location.hash) {
53 location.hash = requestFragment
471 url.hash = ''
535 // allow requests if an invalid hash is given, as precedence).
568 const expectedValue = item.hash
595 // https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
598 const parseHashWithOptions = /(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i
606 /** @type {{ algo: string, hash
[all...]

Completed in 16 milliseconds

1...<<21222324252627282930>>...93