Home
last modified time | relevance | path

Searched refs:hash_len (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium/base/
Dsha1_win.cc38 DWORD hash_len = 0; in SHA1HashString() local
39 DWORD buffer_size = sizeof hash_len; in SHA1HashString()
41 reinterpret_cast<unsigned char*>(&hash_len), in SHA1HashString()
51 reinterpret_cast<BYTE*>(WriteInto(&result, hash_len + 1)), &hash_len, in SHA1HashString()
57 if (hash_len != SHA1_LENGTH) { in SHA1HashString()
58 LOG(ERROR) << "Returned hash value is wrong length: " << hash_len in SHA1HashString()
/external/srtp/crypto/test/
Dsha1_driver.c57 unsigned hash_len; /* number of octets output by hash */ member
70 unsigned hash_len) { in hash_test_case_add() argument
83 tmp_len = hex_string_to_octet_string((char *)test_case->hash, hex_hash, hash_len*2); in hash_test_case_add()
84 if (tmp_len != hash_len*2) in hash_test_case_add()
88 test_case->hash_len = hash_len; in hash_test_case_add()
105 if (test_case->hash_len != 20) in sha1_test_case_validate()
/external/chromium/chrome/browser/safe_browsing/
Dprotocol_parser.cc290 const int hash_len = atoi(cmd_parts[2].c_str()); in ParseChunk() local
291 if (hash_len != sizeof(SBPrefix) && hash_len != sizeof(SBFullHash)) { in ParseChunk()
292 VLOG(1) << "ParseChunk got unknown hashlen " << hash_len; in ParseChunk()
306 if (!ParseAddChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk()
311 if (!ParseSubChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk()
332 int hash_len, in ParseAddChunk() argument
337 SBEntry::Type type = hash_len == sizeof(SBPrefix) ? in ParseAddChunk()
342 DCHECK_EQ(0, remaining % hash_len); in ParseAddChunk()
343 prefix_count = remaining / hash_len; in ParseAddChunk()
370 int hash_len, in ParseSubChunk() argument
[all …]
Dprotocol_parser.h109 int hash_len,
114 int hash_len,
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Dikev2_common.c124 size_t hash_len; in ikev2_prf_plus() local
134 hash_len = prf->hash_len; in ikev2_prf_plus()
137 len[0] = hash_len; in ikev2_prf_plus()
156 clen = hash_len; in ikev2_prf_plus()
469 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; in ikev2_derive_auth_data()
478 os_memcpy(pos, hash, prf->hash_len); in ikev2_derive_auth_data()
483 ikev2_prf_hash(prf->id, hash, prf->hash_len, 1, in ikev2_derive_auth_data()
528 if (encrypted_len < iv_len + 1 + integ_alg->hash_len) { in ikev2_decrypt_payload()
537 integ = end - integ_alg->hash_len; in ikev2_decrypt_payload()
550 if (os_memcmp(integ, hash, integ_alg->hash_len) != 0) { in ikev2_decrypt_payload()
[all …]
Dikev2_common.h265 size_t hash_len; member
271 size_t hash_len; member
Deap_ikev2_common.c99 icv_len = integ->hash_len; in eap_ikev2_validate_icv()
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.c125 size_t hash_len; in ikev2_prf_plus() local
135 hash_len = prf->hash_len; in ikev2_prf_plus()
138 len[0] = hash_len; in ikev2_prf_plus()
157 clen = hash_len; in ikev2_prf_plus()
470 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; in ikev2_derive_auth_data()
479 os_memcpy(pos, hash, prf->hash_len); in ikev2_derive_auth_data()
484 ikev2_prf_hash(prf->id, hash, prf->hash_len, 1, in ikev2_derive_auth_data()
529 if (encrypted_len < iv_len + 1 + integ_alg->hash_len) { in ikev2_decrypt_payload()
538 integ = end - integ_alg->hash_len; in ikev2_decrypt_payload()
551 if (os_memcmp(integ, hash, integ_alg->hash_len) != 0) { in ikev2_decrypt_payload()
[all …]
Dikev2_common.h265 size_t hash_len; member
271 size_t hash_len; member
Deap_ikev2_common.c99 icv_len = integ->hash_len; in eap_ikev2_validate_icv()
/external/chromium/net/http/
Ddes.cc213 DWORD hash_len = 8; in DESEncrypt() local
214 CryptEncrypt(key, 0, FALSE, 0, hash, &hash_len, 8); in DESEncrypt()
/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c351 size_t hash_len; in wps_build_oob_dev_password() local
359 hash_len = wpabuf_len(wps->dh_pubkey); in wps_build_oob_dev_password()
360 sha256_vector(1, addr, &hash_len, pubkey_hash); in wps_build_oob_dev_password()
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dx509v3.c1328 size_t hash_len; in x509_certificate_check_signature() local
1486 hash_len = 16; in x509_certificate_check_signature()
1488 hash, hash_len); in x509_certificate_check_signature()
1493 hash_len = 20; in x509_certificate_check_signature()
1495 hash, hash_len); in x509_certificate_check_signature()
1501 hash_len = 32; in x509_certificate_check_signature()
1503 hash, hash_len); in x509_certificate_check_signature()
1520 if (hdr.length != hash_len || in x509_certificate_check_signature()
/external/wpa_supplicant_8/src/tls/
Dx509v3.c1597 size_t hash_len; in x509_certificate_check_signature() local
1755 hash_len = 16; in x509_certificate_check_signature()
1757 hash, hash_len); in x509_certificate_check_signature()
1762 hash_len = 20; in x509_certificate_check_signature()
1764 hash, hash_len); in x509_certificate_check_signature()
1769 hash_len = 32; in x509_certificate_check_signature()
1771 hash, hash_len); in x509_certificate_check_signature()
1783 if (hdr.length != hash_len || in x509_certificate_check_signature()
/external/wpa_supplicant/
Dx509v3.c1313 size_t hash_len; in x509_certificate_check_signature() local
1458 hash_len = 16; in x509_certificate_check_signature()
1460 hash, hash_len); in x509_certificate_check_signature()
1465 hash_len = 20; in x509_certificate_check_signature()
1467 hash, hash_len); in x509_certificate_check_signature()
1480 if (hdr.length != hash_len || in x509_certificate_check_signature()
/external/wpa_supplicant_8/src/crypto/
Dtls.h66 size_t hash_len; member
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/
Dikev2.c116 skeyseed, prf->hash_len); in ikev2_derive_keys()
640 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
646 auth_data, prf->hash_len); in ikev2_process_auth_secret()
1078 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()
Deap_aka.c223 size_t hash_len; in eap_aka_verify_checkcode() local
238 hash_len = data->eap_method == EAP_TYPE_AKA_PRIME ? in eap_aka_verify_checkcode()
241 if (checkcode_len != hash_len) { in eap_aka_verify_checkcode()
256 if (os_memcmp(hash, checkcode, hash_len) != 0) { in eap_aka_verify_checkcode()
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c117 skeyseed, prf->hash_len); in ikev2_derive_keys()
641 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
647 auth_data, prf->hash_len); in ikev2_process_auth_secret()
1079 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()
Deap_server_aka.c223 size_t hash_len; in eap_aka_verify_checkcode() local
238 hash_len = data->eap_method == EAP_TYPE_AKA_PRIME ? in eap_aka_verify_checkcode()
241 if (checkcode_len != hash_len) { in eap_aka_verify_checkcode()
256 if (os_memcmp(hash, checkcode, hash_len) != 0) { in eap_aka_verify_checkcode()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.c130 skeyseed, prf->hash_len); in ikev2_derive_keys()
607 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
613 auth_data, prf->hash_len); in ikev2_process_auth_secret()
1060 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()
Deap_aka.c361 size_t hash_len; in eap_aka_verify_checkcode() local
376 hash_len = data->eap_method == EAP_TYPE_AKA_PRIME ? in eap_aka_verify_checkcode()
379 if (checkcode_len != hash_len) { in eap_aka_verify_checkcode()
396 if (os_memcmp(hash, checkcode, hash_len) != 0) { in eap_aka_verify_checkcode()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
Dikev2.c129 skeyseed, prf->hash_len); in ikev2_derive_keys()
606 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
612 auth_data, prf->hash_len); in ikev2_process_auth_secret()
1059 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()
Deap_aka.c363 size_t hash_len; in eap_aka_verify_checkcode() local
378 hash_len = data->eap_method == EAP_TYPE_AKA_PRIME ? in eap_aka_verify_checkcode()
381 if (checkcode_len != hash_len) { in eap_aka_verify_checkcode()
398 if (os_memcmp(hash, checkcode, hash_len) != 0) { in eap_aka_verify_checkcode()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_cryptoapi.c114 int cryptoapi_hash_vector(ALG_ID alg, size_t hash_len, size_t num_elem, in cryptoapi_hash_vector() argument
142 hlen = hash_len; in cryptoapi_hash_vector()

12