/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
H A D | eap_server_md5.c | 104 u8 hash[CHAP_MD5_LEN], id; in eap_md5_process() local 123 data->challenge, CHALLENGE_LEN, hash)) { in eap_md5_process() 129 if (os_memcmp_const(hash, pos, CHAP_MD5_LEN) == 0) { in eap_md5_process()
|
/third_party/glslang/SPIRV/ |
H A D | SPVRemapper.cpp | 57 // hash opcode, with special handling for OpExtInst 745 // hash values. in mapFnBodies() 1339 std::uint32_t hash = 10000; in hashType() local 1341 hash += w * hashType(idPos(spv[typeStart+w])); in hashType() 1342 return hash; in hashType() 1349 std::uint32_t hash = 200000; in hashType() local 1351 hash += w * hashType(idPos(spv[typeStart+w])); in hashType() 1352 return hash; in hashType() 1364 std::uint32_t hash = 300011 + hashType(idPos(spv[typeStart+1])); in hashType() local 1366 hash in hashType() 1371 std::uint32_t hash = 400011 + hashType(idPos(spv[typeStart+1])); hashType() local 1378 std::uint32_t hash = 500009 + hashType(idPos(spv[typeStart+1])); hashType() local 1383 std::uint32_t hash = 600011 + hashType(idPos(spv[typeStart+1])); hashType() local [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | objects-inl.h | 1120 uint32_t hash = ComputeUnseededHash(Smi::ToInt(object)); in GetSimpleHash() local 1121 return Smi::FromInt(hash & Smi::kMaxValue); in GetSimpleHash() 1129 uint32_t hash; in GetSimpleHash() 1132 hash = ComputeUnseededHash(FastD2I(num)); in GetSimpleHash() 1134 hash = ComputeLongHash(base::double_to_uint64(num)); in GetSimpleHash() 1136 return Smi::FromInt(hash & Smi::kMaxValue); in GetSimpleHash() 1138 uint32_t hash = Name::cast(object).EnsureHash(); in GetSimpleHash() local 1139 return Smi::FromInt(hash); in GetSimpleHash() 1141 uint32_t hash = Oddball::cast(object).to_string().EnsureHash(); in GetSimpleHash() local 1142 return Smi::FromInt(hash); in GetSimpleHash() 1144 uint32_t hash = BigInt::cast(object).Hash(); GetSimpleHash() local 1147 uint32_t hash = SharedFunctionInfo::cast(object).Hash(); GetSimpleHash() local 1156 Object hash = GetSimpleHash(*this); GetHash() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | wps_enrollee.c | 37 u8 *hash; in wps_build_e_hash() local 56 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash() 66 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_e_hash() 67 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash1", hash, SHA256_MAC_LEN); in wps_build_e_hash() 72 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash() 76 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_e_hash() 77 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash2", hash, SHA256_MAC_LEN); in wps_build_e_hash() 567 u8 hash[WPS_HASH_LEN]; in wps_process_pubkey() local 568 sha256_vector(1, &pk, &pk_len, hash); in wps_process_pubkey() 569 if (os_memcmp_const(hash, wp in wps_process_pubkey() 626 u8 hash[SHA256_MAC_LEN]; wps_process_r_snonce1() local 666 u8 hash[SHA256_MAC_LEN]; wps_process_r_snonce2() local [all...] |
H A D | wps_common.c | 31 u8 hash[SHA256_MAC_LEN], *opos; in wps_kdf() local 51 hmac_sha256_vector(key, SHA256_MAC_LEN, 4, addr, len, hash); in wps_kdf() 53 os_memcpy(opos, hash, SHA256_MAC_LEN); in wps_kdf() 57 os_memcpy(opos, hash, left); in wps_kdf() 135 u8 hash[SHA256_MAC_LEN]; in wps_derive_psk() local 138 (dev_passwd_len + 1) / 2, hash) < 0) in wps_derive_psk() 140 os_memcpy(wps->psk1, hash, WPS_PSK_LEN); in wps_derive_psk() 143 dev_passwd_len / 2, hash) < 0) in wps_derive_psk() 145 os_memcpy(wps->psk2, hash, WPS_PSK_LEN); in wps_derive_psk() 504 u8 hash[SHA1_MAC_LE in uuid_gen_mac_addr() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | wps_enrollee.c | 37 u8 *hash; in wps_build_e_hash() local 56 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash() 66 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_e_hash() 67 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash1", hash, SHA256_MAC_LEN); in wps_build_e_hash() 72 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash() 76 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 4, addr, len, hash); in wps_build_e_hash() 77 wpa_hexdump(MSG_DEBUG, "WPS: E-Hash2", hash, SHA256_MAC_LEN); in wps_build_e_hash() 567 u8 hash[WPS_HASH_LEN]; in wps_process_pubkey() local 568 sha256_vector(1, &pk, &pk_len, hash); in wps_process_pubkey() 569 if (os_memcmp_const(hash, wp in wps_process_pubkey() 626 u8 hash[SHA256_MAC_LEN]; wps_process_r_snonce1() local 666 u8 hash[SHA256_MAC_LEN]; wps_process_r_snonce2() local [all...] |
H A D | wps_common.c | 31 u8 hash[SHA256_MAC_LEN], *opos; in wps_kdf() local 51 hmac_sha256_vector(key, SHA256_MAC_LEN, 4, addr, len, hash); in wps_kdf() 53 os_memcpy(opos, hash, SHA256_MAC_LEN); in wps_kdf() 57 os_memcpy(opos, hash, left); in wps_kdf() 135 u8 hash[SHA256_MAC_LEN]; in wps_derive_psk() local 138 (dev_passwd_len + 1) / 2, hash) < 0) in wps_derive_psk() 140 os_memcpy(wps->psk1, hash, WPS_PSK_LEN); in wps_derive_psk() 143 dev_passwd_len / 2, hash) < 0) in wps_derive_psk() 145 os_memcpy(wps->psk2, hash, WPS_PSK_LEN); in wps_derive_psk() 504 u8 hash[SHA1_MAC_LE in uuid_gen_mac_addr() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | dpp_crypto.c | 306 wpa_printf(MSG_DEBUG, "DPP: Failed to hash public key"); in dpp_bootstrap_key_hash() 341 wpa_printf(MSG_DEBUG, "DPP: Failed to hash public key"); in dpp_keygen() 537 wpa_hexdump(MSG_DEBUG, "DPP: Public key hash", in dpp_bi_pubkey_hash() 546 wpa_hexdump(MSG_DEBUG, "DPP: Public key hash (chirp)", in dpp_bi_pubkey_hash() 559 wpa_printf(MSG_DEBUG, "DPP: Failed to hash public key"); in dpp_get_subject_public_key() 670 u8 hash[SHA256_MAC_LEN]; in dpp_check_pubkey_match() local 683 res = sha256_vector(1, addr, len, hash); in dpp_check_pubkey_match() 687 if (os_memcmp(hash, wpabuf_head(r_hash), SHA256_MAC_LEN) != 0) { in dpp_check_pubkey_match() 689 "DPP: Received hash value does not match calculated public key hash valu in dpp_check_pubkey_match() 710 u8 *hash = NULL; dpp_process_signed_connector() local 1153 u8 hash[SHA256_MAC_LEN]; dpp_derive_pmkid() local 1440 u8 hash[DPP_MAX_HASH_LEN]; dpp_pkex_derive_Qi() local 1515 u8 hash[DPP_MAX_HASH_LEN]; dpp_pkex_derive_Qr() local 1883 u8 *hash; dpp_build_conn_signature() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-core.c | 294 .alg.hash = { 324 .alg.hash = { 354 .alg.hash = { 384 .alg.hash = { 442 ss_algs[i].alg.hash.halg.base.cra_driver_name, in sun8i_ss_debugfs_show() 443 ss_algs[i].alg.hash.halg.base.cra_name, in sun8i_ss_debugfs_show() 643 ss_algs[i].alg.hash.halg.base.cra_name); in sun8i_ss_register_algs() 648 ss_algs[i].alg.hash.halg.base.cra_name); in sun8i_ss_register_algs() 649 err = crypto_register_ahash(&ss_algs[i].alg.hash); in sun8i_ss_register_algs() 652 ss_algs[i].alg.hash in sun8i_ss_register_algs() [all...] |
/kernel/linux/linux-5.10/drivers/firmware/google/ |
H A D | gsmi.c | 702 * This hash function was blatantly copied from include/linux/hash.h. 712 u64 hash = val; in local_hash_64() local 715 u64 n = hash; in local_hash_64() 717 hash -= n; in local_hash_64() 719 hash -= n; in local_hash_64() 721 hash += n; in local_hash_64() 723 hash -= n; in local_hash_64() 725 hash += n; in local_hash_64() 727 hash in local_hash_64() 759 u32 hash; gsmi_system_valid() local [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | inet_hashtables.c | 71 * The bindhash mutex for snum's hash chain must be held here. 190 u32 hash; in inet_lhash2_bucket_sk() local 194 hash = ipv6_portaddr_hash(sock_net(sk), in inet_lhash2_bucket_sk() 199 hash = ipv4_portaddr_hash(sock_net(sk), in inet_lhash2_bucket_sk() 202 return inet_lhash2_bucket(h, hash); in inet_lhash2_bucket_sk() 414 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); in __inet_lookup_established() local 415 unsigned int slot = hash & hashinfo->ehash_mask; in __inet_lookup_established() 420 if (sk->sk_hash != hash) in __inet_lookup_established() 461 unsigned int hash = inet_ehashfn(net, daddr, lport, in __inet_check_established() local 463 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/google/ |
H A D | gsmi.c | 703 * This hash function was blatantly copied from include/linux/hash.h. 713 u64 hash = val; in local_hash_64() local 716 u64 n = hash; in local_hash_64() 718 hash -= n; in local_hash_64() 720 hash -= n; in local_hash_64() 722 hash += n; in local_hash_64() 724 hash -= n; in local_hash_64() 726 hash += n; in local_hash_64() 728 hash in local_hash_64() 760 u32 hash; gsmi_system_valid() local [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/ |
H A D | DestroyObjectTests.cpp | 253 // ComputePipelines usually set their hash values at construction, but the mock does not, so in TEST_F() 255 constexpr size_t hash = 0x12345; in TEST_F() local 257 computePipelineMock->SetContentHash(hash); in TEST_F() 258 ON_CALL(*computePipelineMock, ComputeContentHash).WillByDefault(Return(hash)); in TEST_F() 360 // RenderPipelines usually set their hash values at construction, but the mock does not, so in TEST_F() 362 constexpr size_t hash = 0x12345; in TEST_F() local 364 renderPipelineMock->SetContentHash(hash); in TEST_F() 365 ON_CALL(*renderPipelineMock, ComputeContentHash).WillByDefault(Return(hash)); in TEST_F() 619 // Compute pipelines usually set their hash values at construction, but the mock does in TEST_F() 621 constexpr size_t hash in TEST_F() local 668 constexpr size_t hash = 0x12345; TEST_F() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | tlsv1_client_write.c | 581 u8 hash[100], *hpos; in tls_write_client_certificate_verify() local 612 * The hash values are calculated over all handshake messages sent or in tls_write_client_certificate_verify() 618 hpos = hash; in tls_write_client_certificate_verify() 647 os_memmove(hash + 19, hash, hlen); in tls_write_client_certificate_verify() 649 os_memcpy(hash, "\x30\x31\x30\x0d\x06\x09\x60\x86\x48\x01\x65" in tls_write_client_certificate_verify() 683 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); in tls_write_client_certificate_verify() 690 * hash algorithms. in tls_write_client_certificate_verify() 693 * HashAlgorithm hash; in tls_write_client_certificate_verify() 787 u8 hash[MD5_MAC_LEN + SHA1_MAC_LEN]; tls_write_client_finished() local [all...] |
H A D | tlsv1_server_write.c | 564 u8 hash[100]; in tls_write_server_key_exchange() local 575 pos - server_params, hash + 19); in tls_write_server_key_exchange() 580 * signature and hash algorithms. in tls_write_server_key_exchange() 583 * HashAlgorithm hash; in tls_write_server_key_exchange() 610 os_memcpy(hash, in tls_write_server_key_exchange() 623 pos - server_params, hash); in tls_write_server_key_exchange() 632 wpa_hexdump(MSG_MSGDUMP, "TLS: ServerKeyExchange signed_params hash", in tls_write_server_key_exchange() 633 hash, hlen); in tls_write_server_key_exchange() 636 tlsv1_server_log(conn, "TESTING: Break ServerKeyExchange signed params hash"); in tls_write_server_key_exchange() 637 hash[hle in tls_write_server_key_exchange() 837 u8 hash[MD5_MAC_LEN + SHA1_MAC_LEN]; tls_write_server_finished() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A D | tlsv1_client_write.c | 569 u8 hash[100], *hpos; in tls_write_client_certificate_verify() local 600 * The hash values are calculated over all handshake messages sent or in tls_write_client_certificate_verify() 606 hpos = hash; in tls_write_client_certificate_verify() 635 os_memmove(hash + 19, hash, hlen); in tls_write_client_certificate_verify() 637 os_memcpy(hash, "\x30\x31\x30\x0d\x06\x09\x60\x86\x48\x01\x65" in tls_write_client_certificate_verify() 671 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); in tls_write_client_certificate_verify() 678 * hash algorithms. in tls_write_client_certificate_verify() 681 * HashAlgorithm hash; in tls_write_client_certificate_verify() 775 u8 hash[MD5_MAC_LEN + SHA1_MAC_LEN]; tls_write_client_finished() local [all...] |
H A D | tlsv1_server_write.c | 564 u8 hash[100]; in tls_write_server_key_exchange() local 575 pos - server_params, hash + 19); in tls_write_server_key_exchange() 580 * signature and hash algorithms. in tls_write_server_key_exchange() 583 * HashAlgorithm hash; in tls_write_server_key_exchange() 610 os_memcpy(hash, in tls_write_server_key_exchange() 623 pos - server_params, hash); in tls_write_server_key_exchange() 632 wpa_hexdump(MSG_MSGDUMP, "TLS: ServerKeyExchange signed_params hash", in tls_write_server_key_exchange() 633 hash, hlen); in tls_write_server_key_exchange() 636 tlsv1_server_log(conn, "TESTING: Break ServerKeyExchange signed params hash"); in tls_write_server_key_exchange() 637 hash[hle in tls_write_server_key_exchange() 837 u8 hash[MD5_MAC_LEN + SHA1_MAC_LEN]; tls_write_server_finished() local [all...] |
/third_party/jerryscript/jerry-core/ecma/base/ |
H A D | ecma-helpers-string.c | 221 symbol_p->header.u.hash = (lit_string_hash_t) (((uintptr_t) symbol_p) >> ECMA_SYMBOL_HASH_SHIFT); in ecma_new_symbol_from_descriptor_string() 222 JERRY_ASSERT ((symbol_p->header.u.hash & ECMA_GLOBAL_SYMBOL_FLAG) == 0); in ecma_new_symbol_from_descriptor_string() 357 string_desc_p->u.hash = lit_utf8_string_calc_hash (string_p, string_size); in ecma_new_ecma_string_from_utf8() 377 string_desc_p->header.u.hash = lit_utf8_string_calc_hash (string_p, size); in ecma_new_nonref_ecma_string_from_utf8() 387 string_desc_p->header.u.hash = lit_utf8_string_calc_hash (string_p, size); in ecma_new_nonref_ecma_string_from_utf8() 396 string_desc_p->header.u.hash = lit_utf8_string_calc_hash (string_p, size); in ecma_new_nonref_ecma_string_from_utf8() 481 string_desc_p->u.hash = lit_utf8_string_calc_hash (begin_data_p, converted_string_size); in ecma_new_ecma_string_from_utf8_converted_to_cesu8() 612 string_desc_p->u.hash = lit_utf8_string_calc_hash (str_buf, str_size); in ecma_new_ecma_string_from_number() 732 hash_start = string1_p->u.hash; in ecma_append_chars_to_string() 735 string_desc_p->u.hash in ecma_append_chars_to_string() 2789 const lit_string_hash_t hash = lit_utf8_string_calc_hash (string_begin_p, string_size); ecma_stringbuilder_finalize() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/ |
H A D | radius.c | 526 u8 hash[MD5_MAC_LEN]; in radius_msg_verify_acct_req() local 537 md5_vector(4, addr, len, hash); in radius_msg_verify_acct_req() 538 return os_memcmp_const(msg->hdr->authenticator, hash, MD5_MAC_LEN) != 0; in radius_msg_verify_acct_req() 549 u8 hash[MD5_MAC_LEN]; in radius_msg_verify_das_req() local 565 md5_vector(4, addr, len, hash); in radius_msg_verify_das_req() 566 if (os_memcmp_const(msg->hdr->authenticator, hash, MD5_MAC_LEN) != 0) in radius_msg_verify_das_req() 854 u8 hash[MD5_MAC_LEN]; in radius_msg_verify() local 876 if (md5_vector(4, addr, len, hash) < 0 || in radius_msg_verify() 877 os_memcmp_const(hash, msg->hdr->authenticator, MD5_MAC_LEN) != 0) { in radius_msg_verify() 988 u8 hash[MD5_MAC_LE in decrypt_ms_key() local 1065 u8 hash[MD5_MAC_LEN], saltbuf[2], *pos; encrypt_ms_key() local 1296 u8 hash[16]; radius_user_password_hide() local 1565 u8 hash[16]; radius_msg_get_tunnel_password() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/ |
H A D | radius.c | 526 u8 hash[MD5_MAC_LEN]; in radius_msg_verify_acct_req() local 537 md5_vector(4, addr, len, hash); in radius_msg_verify_acct_req() 538 return os_memcmp_const(msg->hdr->authenticator, hash, MD5_MAC_LEN) != 0; in radius_msg_verify_acct_req() 549 u8 hash[MD5_MAC_LEN]; in radius_msg_verify_das_req() local 565 md5_vector(4, addr, len, hash); in radius_msg_verify_das_req() 566 if (os_memcmp_const(msg->hdr->authenticator, hash, MD5_MAC_LEN) != 0) in radius_msg_verify_das_req() 854 u8 hash[MD5_MAC_LEN]; in radius_msg_verify() local 876 if (md5_vector(4, addr, len, hash) < 0 || in radius_msg_verify() 877 os_memcmp_const(hash, msg->hdr->authenticator, MD5_MAC_LEN) != 0) { in radius_msg_verify() 988 u8 hash[MD5_MAC_LE in decrypt_ms_key() local 1065 u8 hash[MD5_MAC_LEN], saltbuf[2], *pos; encrypt_ms_key() local 1296 u8 hash[16]; radius_user_password_hide() local 1565 u8 hash[16]; radius_msg_get_tunnel_password() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/bcm/ |
H A D | cipher.c | 33 #include <crypto/hash.h> 75 MODULE_PARM_DESC(hash_pri, "Priority for hash algos"); 514 * @digestsize: length of hash digest, in bytes 629 * handle_ahash_req() - Process an asynchronous hash request from the crypto 667 unsigned int chunksize = 0; /* length of hash carry + new data */ in handle_ahash_req() 669 * length of new data, not from hash carry, to be submitted in in handle_ahash_req() 675 u32 db_size; /* Length of data field, incl gcm and hash padding */ in handle_ahash_req() 676 int pad_len = 0; /* total pad len, including gcm, hash, stat padding */ in handle_ahash_req() 712 * For hash algorithms below assignment looks bit odd but in handle_ahash_req() 713 * it's needed for AES-XCBC and AES-CMAC hash algorithm in handle_ahash_req() 2024 struct crypto_shash *hash; ahash_init() local 4488 struct ahash_alg *hash = &driver_alg->alg.hash; spu_register_ahash() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/bcm/ |
H A D | cipher.c | 31 #include <crypto/hash.h> 75 MODULE_PARM_DESC(hash_pri, "Priority for hash algos"); 512 * @digestsize: length of hash digest, in bytes 627 * handle_ahash_req() - Process an asynchronous hash request from the crypto 665 unsigned int chunksize = 0; /* length of hash carry + new data */ in handle_ahash_req() 667 * length of new data, not from hash carry, to be submitted in in handle_ahash_req() 673 u32 db_size; /* Length of data field, incl gcm and hash padding */ in handle_ahash_req() 674 int pad_len = 0; /* total pad len, including gcm, hash, stat padding */ in handle_ahash_req() 710 * For hash algorithms below assignment looks bit odd but in handle_ahash_req() 711 * it's needed for AES-XCBC and AES-CMAC hash algorithm in handle_ahash_req() 2021 struct crypto_shash *hash; ahash_init() local 4456 struct ahash_alg *hash = &driver_alg->alg.hash; spu_register_ahash() local [all...] |
/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | string_helper.cpp | 196 unsigned int hash = 0;
in GetHashCode() local 201 hash = hash * seed + (*string);
in GetHashCode() 204 return (hash & 0x7FFFFFFF);
in GetHashCode()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_blur_filter.cpp | 39 hash_ = SkOpts::hash(&type_, sizeof(type_), 0); in RSBlurFilter() 40 hash_ = SkOpts::hash(&blurRadiusXForHash, sizeof(blurRadiusXForHash), hash_); in RSBlurFilter() 41 hash_ = SkOpts::hash(&blurRadiusYForHash, sizeof(blurRadiusYForHash), hash_); in RSBlurFilter() 80 result->hash_ = SkOpts::hash(&otherHash, sizeof(otherHash), hash_); in Compose()
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss.h | 8 * Support MD5 and SHA1 hash algorithms. 29 #include <crypto/hash.h> 30 #include <crypto/internal/hash.h> 69 /* IV mode for hash */ 164 struct ahash_alg hash; member 186 u32 hash[5]; /* for storing SS_IVx register */ member
|