Home
last modified time | relevance | path

Searched refs:hash (Results 1601 - 1625 of 3998) sorted by relevance

1...<<61626364656667686970>>...160

/kernel/linux/linux-6.6/security/integrity/ima/
H A Dima.h20 #include <linux/hash.h>
107 struct hlist_node hnext; /* place in hash collision list */
142 int ima_calc_file_hash(struct file *file, struct ima_digest_data *hash);
144 struct ima_digest_data *hash);
147 int ima_calc_boot_aggregate(struct ima_digest_data *hash);
185 /* there is no point in taking a hash of part of a digest */ in ima_hash_key()
/kernel/linux/linux-6.6/security/keys/trusted-keys/
H A Dtrusted_tpm2.c233 u32 hash; in tpm2_seal_trusted() local
239 if (options->hash == tpm2_hash_map[i].crypto_id) { in tpm2_seal_trusted()
240 hash = tpm2_hash_map[i].tpm_id; in tpm2_seal_trusted()
281 tpm_buf_append_u16(&buf, hash); in tpm2_seal_trusted()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline_dynptr.c217 __u32 hash = get_packet_hash(pckt, is_ipv6); in get_packet_dst() local
218 __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; in get_packet_dst()
221 if (hash != 0x358459b7 /* jhash of ipv4 packet */ && in get_packet_dst()
222 hash != 0x2f4bc6bb /* jhash of ipv6 packet */) in get_packet_dst()
H A Dtest_l4lb_noinline.c215 __u32 hash = get_packet_hash(pckt, is_ipv6); in get_packet_dst() local
216 __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; in get_packet_dst()
219 if (hash != 0x358459b7 /* jhash of ipv4 packet */ && in get_packet_dst()
220 hash != 0x2f4bc6bb /* jhash of ipv6 packet */) in get_packet_dst()
/kernel/linux/linux-6.6/net/ipv6/
H A Danycast.c45 /* anycast address hash table
226 unsigned int hash = inet6_acaddr_hash(net, &aca->aca_addr); in ipv6_add_acaddr_hash() local
229 hlist_add_head_rcu(&aca->aca_addr_lst, &inet6_acaddr_lst[hash]); in ipv6_add_acaddr_hash()
447 unsigned int hash = inet6_acaddr_hash(net, addr); in ipv6_chk_acast_addr() local
449 hlist_for_each_entry_rcu(aca, &inet6_acaddr_lst[hash], in ipv6_chk_acast_addr()
/test/xts/device_attest_lite/services/core/security/
H A Dattest_security.c393 uint8_t hash[MD5_LEN] = {0}; in MD5Encode() local
400 mbedtls_md5_finish(&md5_ctx, hash); in MD5Encode()
405 uint8_t value = hash[i]; in MD5Encode()
420 (void)memset_s(hash, MD5_LEN, 0, MD5_LEN); in MD5Encode()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DLocaleDataTest.java188 int hash = 0; in hashCode()
190 hash = (hash<<8)+scs[i]; in hashCode()
192 return hash; in hashCode()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DLocaleDataTest.java185 int hash = 0; in hashCode()
187 hash = (hash<<8)+scs[i]; in hashCode()
189 return hash; in hashCode()
/third_party/jerryscript/jerry-core/lit/
H A Dlit-strings.c573 * Calc hash using the specified hash_basis.
576 * This is implementation of FNV-1a hash function, which is released into public domain.
580 * @return ecma-string's hash
583 lit_utf8_string_hash_combine (lit_string_hash_t hash_basis, /**< hash to be combined with */ in lit_utf8_string_hash_combine()
589 uint32_t hash = hash_basis; in lit_utf8_string_hash_combine() local
594 hash = (hash ^ utf8_buf_p[i]) * 16777619; in lit_utf8_string_hash_combine()
597 return (lit_string_hash_t) hash; in lit_utf8_string_hash_combine()
601 * Calculate hash from the buffer.
603 * @return ecma-string's hash
[all...]
/third_party/node/test/fixtures/wpt/WebCryptoAPI/encrypt_decrypt/
H A Drsa.js315 publicPromise = subtle.importKey(vector.publicKeyFormat, vector.publicKeyBuffer, {name: vector.algorithm.name, hash: vector.hash}, false, publicKeyUsages)
338 privatePromise = subtle.importKey(vector.privateKeyFormat, vector.privateKeyBuffer, {name: vector.algorithm.name, hash: vector.hash}, false, privateKeyUsages)
/third_party/node/test/fixtures/wpt/WebCryptoAPI/sign_verify/
H A Drsa.js386 publicPromise = subtle.importKey(vector.publicKeyFormat, vector.publicKeyBuffer, {name: vector.algorithm.name, hash: vector.hash}, false, publicKeyUsages)
398 privatePromise = subtle.importKey(vector.privateKeyFormat, vector.privateKeyBuffer, {name: vector.algorithm.name, hash: vector.hash}, false, privateKeyUsages)
/third_party/musl/src/network/liteos_a/
H A Dgetifaddrs.c47 struct ifaddrs_storage *hash[IFADDRS_HASH_SIZE]; member
130 for (ifs0 = ctx->hash[ifa->ifa_index % IFADDRS_HASH_SIZE]; ifs0; ifs0 = ifs0->hash_next) in netlink_msg_to_ifaddr()
165 ifs->hash_next = ctx->hash[bucket]; in netlink_msg_to_ifaddr()
166 ctx->hash[bucket] = ifs; in netlink_msg_to_ifaddr()
/third_party/musl/porting/liteos_a/user/src/network/
H A Dgetifaddrs.c47 struct ifaddrs_storage *hash[IFADDRS_HASH_SIZE]; member
130 for (ifs0 = ctx->hash[ifa->ifa_index % IFADDRS_HASH_SIZE]; ifs0; ifs0 = ifs0->hash_next) in netlink_msg_to_ifaddr()
165 ifs->hash_next = ctx->hash[bucket]; in netlink_msg_to_ifaddr()
166 ctx->hash[bucket] = ifs; in netlink_msg_to_ifaddr()
/third_party/node/deps/v8/src/inspector/
H A Dv8-debugger-script.cc83 String16Builder hash; in calculateHash() local
85 hash.appendUnsignedAsHex(static_cast<uint32_t>(hashes[i])); in calculateHash()
86 return hash.toString(); in calculateHash()
257 const String16& hash() const override {
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_sanity.c546 regs_hash_destroy(struct cso_hash *hash) in regs_hash_destroy() argument
548 struct cso_hash_iter iter = cso_hash_first_node(hash); in regs_hash_destroy()
551 iter = cso_hash_erase(hash, iter); in regs_hash_destroy()
555 cso_hash_deinit(hash); in regs_hash_destroy()
/third_party/openssl/test/
H A Dtls13secretstest.c136 /* Give a hash of the currently set handshake */
236 unsigned char hash[EVP_MAX_MD_SIZE]; in test_secret() local
241 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashsize)) { in test_secret()
242 TEST_error("Failed to get hash"); in test_secret()
246 if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize, in test_secret()
350 * hash. in test_handshake_secrets()
/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
H A DRepeatedField.cs507 /// Returns a hash code for this instance.
510 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
514 int hash = 0; in GetHashCode()
517 hash = hash * 31 + array[i].GetHashCode(); in GetHashCode()
519 return hash; in GetHashCode()
/third_party/skia/third_party/externals/swiftshader/tests/regres/cmd/export_to_sheets/
H A Dmain.go133 hash := change.Hash.String()
134 if _, found := hashIndices[hash]; found {
145 data, err := git.Show(path, hash)
173 fmt.Printf("Adding test data at %v to %v\n", hash[:8], sheetName)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DFoldingSet.h9 // This file defines a hash set that can be used to remove duplication of nodes
34 /// This class is implemented as a single-link chained hash table, where the
107 /// structure is an array of buckets. Each bucket is indexed by the hash of
171 /// GrowHashTable - Double the size of the hash table and rehash everything.
174 /// GrowBucketCount - resize the hash table and rehash everything.
190 /// this function to compute a hash value for the given node.
235 // ComputeHash - Compute a hash value for X, using TempID to
237 // just calls Profile and does a regular hash computation.
285 /// ComputeHash - Compute a strong hash value for this FoldingSetNodeIDRef,
304 /// hash valu
422 bucket_begin(unsigned hash) bucket_begin() argument
426 bucket_end(unsigned hash) bucket_end() argument
[all...]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DLiteralByteStringTest.java479 int hash = stringUnderTest.hashCode(); in testHashCode()
480 assertEquals(classUnderTest + " must have expected hashCode", expectedHashCode, hash); in testHashCode()
497 // This test would fail if the expected hash were 1. It's not. in testPartialHash()
498 int hash = stringUnderTest.partialHash(stringUnderTest.size(), 0, stringUnderTest.size()); in testPartialHash()
500 classUnderTest + ".partialHash() must yield expected hashCode", expectedHashCode, hash); in testPartialHash()
/third_party/pulseaudio/src/pulsecore/
H A Ddatabase-simple.c73 unsigned hash = 0; in hash_func() local
81 hash = 31 * hash + (unsigned) *c; in hash_func()
85 return hash; in hash_func()
/third_party/rust/crates/rust-openssl/openssl/src/
H A Dpkcs5.rs9 use crate::hash::MessageDigest;
95 hash: MessageDigest, in pbkdf2_hmac()
106 hash.as_ptr(), in pbkdf2_hmac()
149 use crate::hash::MessageDigest;
/kernel/linux/linux-5.10/fs/ocfs2/dlm/
H A Ddlmmaster.c282 mle->mnamehash = res->lockname.hash; in dlm_init_mle()
330 unsigned int hash; in dlm_find_mle() local
334 hash = dlm_lockid_hash(name, namelen); in dlm_find_mle()
335 bucket = dlm_master_hash(dlm, hash); in dlm_find_mle()
539 res->lockname.hash = dlm_lockid_hash(name, namelen); in dlm_init_lockres()
714 unsigned int hash; in dlm_get_lock_resource() local
720 hash = dlm_lockid_hash(lockid, namelen); in dlm_get_lock_resource()
726 tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); in dlm_get_lock_resource()
880 /* finally add the lockres to its hash bucket */ in dlm_get_lock_resource()
1411 unsigned int namelen, hash; in dlm_master_request_handler() local
1769 unsigned int namelen, hash; dlm_assert_master_handler() local
2261 unsigned int hash; dlm_deref_lockres_handler() local
2356 unsigned int hash; dlm_deref_lockres_done_handler() local
3109 unsigned int namelen, hash; dlm_migrate_request_handler() local
[all...]
/kernel/linux/linux-5.10/net/netfilter/ipvs/
H A Dip_vs_ctl.c270 * Returns hash value for virtual service
293 * Returns hash value of fwmark for virtual service lookup
307 unsigned int hash; in ip_vs_svc_hash() local
319 hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, in ip_vs_svc_hash()
321 hlist_add_head_rcu(&svc->s_list, &ip_vs_svc_table[hash]); in ip_vs_svc_hash()
326 hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); in ip_vs_svc_hash()
327 hlist_add_head_rcu(&svc->f_list, &ip_vs_svc_fwm_table[hash]); in ip_vs_svc_hash()
370 unsigned int hash; in __ip_vs_service_find() local
374 hash = ip_vs_svc_hashkey(ipvs, af, protocol, vaddr, vport); in __ip_vs_service_find()
376 hlist_for_each_entry_rcu(svc, &ip_vs_svc_table[hash], s_lis in __ip_vs_service_find()
397 unsigned int hash; __ip_vs_svc_fwm_find() local
523 unsigned int hash; ip_vs_rs_hash() local
576 unsigned int hash; ip_vs_has_real_service() local
607 unsigned int hash; ip_vs_find_real_service() local
638 unsigned int hash; ip_vs_find_tunnel() local
[all...]
/kernel/linux/linux-6.6/fs/ocfs2/dlm/
H A Ddlmmaster.c280 mle->mnamehash = res->lockname.hash; in dlm_init_mle()
328 unsigned int hash; in dlm_find_mle() local
332 hash = dlm_lockid_hash(name, namelen); in dlm_find_mle()
333 bucket = dlm_master_hash(dlm, hash); in dlm_find_mle()
537 res->lockname.hash = dlm_lockid_hash(name, namelen); in dlm_init_lockres()
712 unsigned int hash; in dlm_get_lock_resource() local
718 hash = dlm_lockid_hash(lockid, namelen); in dlm_get_lock_resource()
724 tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); in dlm_get_lock_resource()
878 /* finally add the lockres to its hash bucket */ in dlm_get_lock_resource()
1409 unsigned int namelen, hash; in dlm_master_request_handler() local
1767 unsigned int namelen, hash; dlm_assert_master_handler() local
2259 unsigned int hash; dlm_deref_lockres_handler() local
2354 unsigned int hash; dlm_deref_lockres_done_handler() local
3107 unsigned int namelen, hash; dlm_migrate_request_handler() local
[all...]

Completed in 24 milliseconds

1...<<61626364656667686970>>...160