Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 8 of 8) sorted by relevance

/hostap-latest/src/eap_common/
Deap_eke_common.c587 size_t block_size, icv_len, pad; in eap_eke_prot() local
591 block_size = AES_BLOCK_SIZE; in eap_eke_prot()
602 pad = data_len % block_size; in eap_eke_prot()
604 pad = block_size - pad; in eap_eke_prot()
606 if (*prot_len < block_size + data_len + pad + icv_len) { in eap_eke_prot()
612 if (random_get_bytes(pos, block_size)) in eap_eke_prot()
615 wpa_hexdump(MSG_DEBUG, "EAP-EKE: IV for Prot()", iv, block_size); in eap_eke_prot()
616 pos += block_size; in eap_eke_prot()
641 size_t block_size, icv_len; in eap_eke_decrypt_prot() local
645 block_size = AES_BLOCK_SIZE; in eap_eke_decrypt_prot()
[all …]
Dikev2_common.h267 size_t block_size; member
Dikev2_common.c453 iv_len = encr_alg->block_size; in ikev2_decrypt_payload()
552 iv_len = encr_alg->block_size; in ikev2_build_encrypted()
/hostap-latest/port/mbedtls/
Dsupp_psa_api.c54 static void supp_psa_get_hash_alg(mbedtls_md_type_t type, psa_algorithm_t *alg, int *block_size) in supp_psa_get_hash_alg() argument
83 *block_size = PSA_HASH_LENGTH(*alg); in supp_psa_get_hash_alg()
334 int block_size; in md_vector_psa() local
338 supp_psa_get_hash_alg(md_type, &alg, &block_size); in md_vector_psa()
354 status = psa_hash_finish(&operation, mac, block_size, &out_len); in md_vector_psa()
375 int block_size; in hmac_vector_psa() local
379 supp_psa_get_hash_alg(md_type, &alg, &block_size); in hmac_vector_psa()
424 int block_size; in pbkdf2_sha1_psa() local
426 supp_psa_get_hash_alg(md_alg, &alg, &block_size); in pbkdf2_sha1_psa()
/hostap-latest/src/wps/
Dwps_attr_build.c397 const size_t block_size = 16; in wps_build_encr_settings() local
403 pad_len = block_size - wpabuf_len(plain) % block_size; in wps_build_encr_settings()
407 wpabuf_put_be16(msg, block_size + wpabuf_len(plain)); in wps_build_encr_settings()
409 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings()
410 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
Dwps_common.c159 const size_t block_size = 16; in wps_decrypt_encr_settings() local
165 if (encr == NULL || encr_len < 2 * block_size || encr_len % block_size) in wps_decrypt_encr_settings()
171 decrypted = wpabuf_alloc(encr_len - block_size); in wps_decrypt_encr_settings()
176 wpabuf_put_data(decrypted, encr + block_size, encr_len - block_size); in wps_decrypt_encr_settings()
/hostap-latest/src/tls/
Dtlsv1_common.h232 size_t block_size; /* also iv_size */ member
Dtlsv1_record.c60 rl->iv_size = data->block_size; in tlsv1_record_set_cipher_suite()