Home
last modified time | relevance | path

Searched refs:emsk_len (Results 1 – 2 of 2) 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()
495 bin_clear_free(emsk, emsk_len); in eap_server_erp_init()
/external/wpa_supplicant_8/src/eap_peer/
Deap.c490 size_t emsk_len = 0; in eap_peer_erp_init() local
520 emsk = sm->m->get_emsk(sm, sm->eap_method_priv, &emsk_len); in eap_peer_erp_init()
521 if (!emsk || emsk_len == 0 || emsk_len > ERP_MAX_KEY_LEN) { in eap_peer_erp_init()
527 wpa_hexdump_key(MSG_DEBUG, "EAP: EMSK", emsk, emsk_len); in eap_peer_erp_init()
543 WPA_PUT_BE16(len, emsk_len); in eap_peer_erp_init()
544 if (hmac_sha256_kdf(emsk, emsk_len, in eap_peer_erp_init()
546 len, sizeof(len), erp->rRK, emsk_len) < 0) { in eap_peer_erp_init()
550 erp->rRK_len = emsk_len; in eap_peer_erp_init()
566 bin_clear_free(emsk, emsk_len); in eap_peer_erp_init()