Home
last modified time | relevance | path

Searched refs:emsk_len (Results 1 – 3 of 3) sorted by relevance

/external/wpa_supplicant_8/src/eap_server/
Deap_server.c416 size_t emsk_len = 0; in eap_server_erp_init() local
446 emsk = sm->m->get_emsk(sm, sm->eap_method_priv, &emsk_len); in eap_server_erp_init()
447 if (!emsk || emsk_len == 0 || emsk_len > ERP_MAX_KEY_LEN) { in eap_server_erp_init()
453 wpa_hexdump_key(MSG_DEBUG, "EAP: EMSK", emsk, emsk_len); in eap_server_erp_init()
469 WPA_PUT_BE16(len, emsk_len); in eap_server_erp_init()
470 if (hmac_sha256_kdf(emsk, emsk_len, in eap_server_erp_init()
472 len, sizeof(len), erp->rRK, emsk_len) < 0) { in eap_server_erp_init()
476 erp->rRK_len = emsk_len; in eap_server_erp_init()
497 bin_clear_free(emsk, emsk_len); in eap_server_erp_init()
/external/wpa_supplicant_8/src/eap_peer/
Deap.c682 size_t emsk_len = 0; in eap_peer_erp_init() local
716 emsk_len = ext_emsk_len; in eap_peer_erp_init()
718 emsk = sm->m->get_emsk(sm, sm->eap_method_priv, &emsk_len); in eap_peer_erp_init()
721 if (!emsk || emsk_len == 0 || emsk_len > ERP_MAX_KEY_LEN) { in eap_peer_erp_init()
727 wpa_hexdump_key(MSG_DEBUG, "EAP: EMSK", emsk, emsk_len); in eap_peer_erp_init()
756 WPA_PUT_BE16(len, emsk_len); in eap_peer_erp_init()
757 if (hmac_sha256_kdf(emsk, emsk_len, in eap_peer_erp_init()
759 len, sizeof(len), erp->rRK, emsk_len) < 0) { in eap_peer_erp_init()
763 erp->rRK_len = emsk_len; in eap_peer_erp_init()
784 bin_clear_free(emsk, emsk_len); in eap_peer_erp_init()
/external/wpa_supplicant_8/src/eapol_supp/
Deapol_supp_sm.c498 size_t session_id_len, emsk_len; in SM_STATE() local
506 emsk = eap_proxy_get_emsk(sm->eap_proxy, &emsk_len); in SM_STATE()
510 emsk_len); in SM_STATE()
513 bin_clear_free(emsk, emsk_len); in SM_STATE()