Home
last modified time | relevance | path

Searched refs:hash_len (Results 1 – 25 of 32) 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.c119 size_t hash_len; in ikev2_prf_plus() local
129 hash_len = prf->hash_len; in ikev2_prf_plus()
132 len[0] = hash_len; in ikev2_prf_plus()
151 clen = hash_len; in ikev2_prf_plus()
464 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; in ikev2_derive_auth_data()
473 os_memcpy(pos, hash, prf->hash_len); in ikev2_derive_auth_data()
478 ikev2_prf_hash(prf->id, hash, prf->hash_len, 1, in ikev2_derive_auth_data()
523 if (encrypted_len < iv_len + 1 + integ_alg->hash_len) { in ikev2_decrypt_payload()
532 integ = end - integ_alg->hash_len; in ikev2_decrypt_payload()
545 if (os_memcmp(integ, hash, integ_alg->hash_len) != 0) { in ikev2_decrypt_payload()
[all …]
Dikev2_common.h259 size_t hash_len; member
265 size_t hash_len; member
Deap_ikev2_common.c93 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.c345 size_t hash_len; in wps_build_oob_dev_password() local
353 hash_len = wpabuf_len(wps->dh_pubkey); in wps_build_oob_dev_password()
354 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.c1591 size_t hash_len; in x509_certificate_check_signature() local
1749 hash_len = 16; in x509_certificate_check_signature()
1751 hash, hash_len); in x509_certificate_check_signature()
1756 hash_len = 20; in x509_certificate_check_signature()
1758 hash, hash_len); in x509_certificate_check_signature()
1763 hash_len = 32; in x509_certificate_check_signature()
1765 hash, hash_len); in x509_certificate_check_signature()
1777 if (hdr.length != hash_len || in x509_certificate_check_signature()
/external/wpa_supplicant_8/src/crypto/
Dtls.h58 size_t hash_len; member
Dcrypto_cryptoapi.c106 int cryptoapi_hash_vector(ALG_ID alg, size_t hash_len, size_t num_elem, in cryptoapi_hash_vector() argument
134 hlen = hash_len; in cryptoapi_hash_vector()
/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.c111 skeyseed, prf->hash_len); in ikev2_derive_keys()
635 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
641 auth_data, prf->hash_len); in ikev2_process_auth_secret()
1073 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()
Deap_server_aka.c216 size_t hash_len; in eap_aka_verify_checkcode() local
231 hash_len = data->eap_method == EAP_TYPE_AKA_PRIME ? in eap_aka_verify_checkcode()
234 if (checkcode_len != hash_len) { in eap_aka_verify_checkcode()
249 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_8/src/eap_peer/
Dikev2.c124 skeyseed, prf->hash_len); in ikev2_derive_keys()
601 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
607 auth_data, prf->hash_len); in ikev2_process_auth_secret()
1054 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()
Deap_aka.c375 size_t hash_len; in eap_aka_verify_checkcode() local
390 hash_len = data->eap_method == EAP_TYPE_AKA_PRIME ? in eap_aka_verify_checkcode()
393 if (checkcode_len != hash_len) { in eap_aka_verify_checkcode()
410 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