Home
last modified time | relevance | path

Searched refs:eapKeyData (Results 1 – 10 of 10) sorted by relevance

/external/wpa_supplicant_8/src/eap_server/
Deap_server_tls.c304 u8 *eapKeyData; in eap_tls_getKey() local
309 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_tls_getKey()
312 if (eapKeyData) { in eap_tls_getKey()
315 eapKeyData, EAP_TLS_KEY_LEN); in eap_tls_getKey()
320 return eapKeyData; in eap_tls_getKey()
327 u8 *eapKeyData, *emsk; in eap_tls_get_emsk() local
332 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_tls_get_emsk()
335 if (eapKeyData) { in eap_tls_get_emsk()
338 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_tls_get_emsk()
340 bin_clear_free(eapKeyData, EAP_TLS_KEY_LEN + EAP_EMSK_LEN); in eap_tls_get_emsk()
Deap_server.c241 bin_clear_free(sm->eap_if.eapKeyData, sm->eap_if.eapKeyDataLen); in SM_STATE()
242 sm->eap_if.eapKeyData = NULL; in SM_STATE()
511 bin_clear_free(sm->eap_if.eapKeyData, sm->eap_if.eapKeyDataLen); in SM_STATE()
513 sm->eap_if.eapKeyData = sm->m->getKey( in SM_STATE()
517 sm->eap_if.eapKeyData = NULL; in SM_STATE()
661 if (sm->eap_if.eapKeyData) in SM_STATE()
756 bin_clear_free(sm->eap_if.eapKeyData, sm->eap_if.eapKeyDataLen); in erp_send_finish_reauth()
758 sm->eap_if.eapKeyData = os_malloc(erp->rRK_len); in erp_send_finish_reauth()
759 if (!sm->eap_if.eapKeyData) in erp_send_finish_reauth()
767 sm->eap_if.eapKeyData, erp->rRK_len) < 0) { in erp_send_finish_reauth()
[all …]
Deap_server_fast.c1560 u8 *eapKeyData; in eap_fast_getKey() local
1565 eapKeyData = os_malloc(EAP_FAST_KEY_LEN); in eap_fast_getKey()
1566 if (eapKeyData == NULL) in eap_fast_getKey()
1569 if (eap_fast_derive_eap_msk(data->simck, eapKeyData) < 0) { in eap_fast_getKey()
1570 os_free(eapKeyData); in eap_fast_getKey()
1575 return eapKeyData; in eap_fast_getKey()
1582 u8 *eapKeyData; in eap_fast_get_emsk() local
1587 eapKeyData = os_malloc(EAP_EMSK_LEN); in eap_fast_get_emsk()
1588 if (eapKeyData == NULL) in eap_fast_get_emsk()
1591 if (eap_fast_derive_eap_emsk(data->simck, eapKeyData) < 0) { in eap_fast_get_emsk()
[all …]
Deap_server_ttls.c1264 u8 *eapKeyData; in eap_ttls_getKey() local
1269 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_ttls_getKey()
1272 if (eapKeyData) { in eap_ttls_getKey()
1275 eapKeyData, EAP_TLS_KEY_LEN); in eap_ttls_getKey()
1280 return eapKeyData; in eap_ttls_getKey()
1306 u8 *eapKeyData, *emsk; in eap_ttls_get_emsk() local
1311 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_ttls_get_emsk()
1314 if (eapKeyData) { in eap_ttls_get_emsk()
1317 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_ttls_get_emsk()
1319 bin_clear_free(eapKeyData, EAP_TLS_KEY_LEN + EAP_EMSK_LEN); in eap_ttls_get_emsk()
Deap_server_peap.c1297 u8 *eapKeyData; in eap_peap_getKey() local
1314 eapKeyData = os_malloc(EAP_TLS_KEY_LEN); in eap_peap_getKey()
1315 if (eapKeyData) { in eap_peap_getKey()
1316 os_memcpy(eapKeyData, csk, EAP_TLS_KEY_LEN); in eap_peap_getKey()
1319 eapKeyData, EAP_TLS_KEY_LEN); in eap_peap_getKey()
1325 return eapKeyData; in eap_peap_getKey()
1329 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_peap_getKey()
1332 if (eapKeyData) { in eap_peap_getKey()
1335 eapKeyData, EAP_TLS_KEY_LEN); in eap_peap_getKey()
1340 return eapKeyData; in eap_peap_getKey()
Deap.h60 u8 *eapKeyData; member
/external/wpa_supplicant_8/src/eap_peer/
Deap.c100 if (sm->eapKeyData) { in eap_sm_free_key()
101 bin_clear_free(sm->eapKeyData, sm->eapKeyDataLen); in eap_sm_free_key()
102 sm->eapKeyData = NULL; in eap_sm_free_key()
697 sm->eapKeyData = sm->m->getKey(sm, sm->eap_method_priv, in SM_STATE()
808 if (sm->eapKeyData != NULL) in SM_STATE()
1715 sm->eapKeyData = os_malloc(erp->rRK_len); in eap_peer_finish()
1716 if (!sm->eapKeyData) in eap_peer_finish()
1725 sm->eapKeyData, erp->rRK_len) < 0) { in eap_peer_finish()
1731 sm->eapKeyData, sm->eapKeyDataLen); in eap_peer_finish()
2733 if (sm->eapKeyData != NULL) in eap_notify_lower_layer_success()
[all …]
Deap_i.h323 u8 *eapKeyData; /* peer to lower layer */ member
/external/wpa_supplicant_8/src/radius/
Dradius_server.c754 if (code == RADIUS_CODE_ACCESS_ACCEPT && sess->eap_if->eapKeyData) { in radius_server_encapsulate_eap()
767 sess->eap_if->eapKeyData, len); in radius_server_encapsulate_eap()
782 sess->eap_if->eapKeyData + len, in radius_server_encapsulate_eap()
783 len, sess->eap_if->eapKeyData, in radius_server_encapsulate_eap()
/external/wpa_supplicant_8/src/ap/
Dieee802_1x.c176 if (sm->eap_if->eapKeyData == NULL || sm->eap_if->eapKeyDataLen < 64) { in ieee802_1x_tx_key_one()
191 os_memcpy(ekey + sizeof(key->key_iv), sm->eap_if->eapKeyData, 32); in ieee802_1x_tx_key_one()
200 hmac_md5(sm->eap_if->eapKeyData + 32, 32, buf, sizeof(*hdr) + len, in ieee802_1x_tx_key_one()
218 if (sm == NULL || !sm->eap_if->eapKeyData) in ieee802_1x_tx_key()
2404 return sm->eap_if->eapKeyData; in ieee802_1x_get_key()