/external/chromium/base/ |
D | sha1_win.cc | 38 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/ |
D | sha1_driver.c | 57 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/ |
D | protocol_parser.cc | 290 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 …]
|
D | protocol_parser.h | 109 int hash_len, 114 int hash_len,
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
D | ikev2_common.c | 124 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 …]
|
D | ikev2_common.h | 265 size_t hash_len; member 271 size_t hash_len; member
|
D | eap_ikev2_common.c | 99 icv_len = integ->hash_len; in eap_ikev2_validate_icv()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | ikev2_common.c | 125 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 …]
|
D | ikev2_common.h | 265 size_t hash_len; member 271 size_t hash_len; member
|
D | eap_ikev2_common.c | 99 icv_len = integ->hash_len; in eap_ikev2_validate_icv()
|
/external/chromium/net/http/ |
D | des.cc | 213 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/ |
D | wps_attr_build.c | 351 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/ |
D | x509v3.c | 1328 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/ |
D | x509v3.c | 1597 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/ |
D | x509v3.c | 1313 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/ |
D | tls.h | 66 size_t hash_len; member
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
D | ikev2.c | 116 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()
|
D | eap_aka.c | 223 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/ |
D | ikev2.c | 117 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()
|
D | eap_server_aka.c | 223 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/ |
D | ikev2.c | 130 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()
|
D | eap_aka.c | 361 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/ |
D | ikev2.c | 129 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()
|
D | eap_aka.c | 363 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/ |
D | crypto_cryptoapi.c | 114 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()
|