Home
last modified time | relevance | path

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

/hostap-3.6.0/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-3.6.0/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-3.6.0/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()