/hostap-3.6.0/src/eap_server/ |
D | eap_server_tls.c | 326 u8 *eapKeyData; in eap_tls_getKey() local 342 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, label, in eap_tls_getKey() 345 if (eapKeyData) { in eap_tls_getKey() 348 eapKeyData, EAP_TLS_KEY_LEN); in eap_tls_getKey() 349 os_memset(eapKeyData + EAP_TLS_KEY_LEN, 0, EAP_EMSK_LEN); in eap_tls_getKey() 354 return eapKeyData; in eap_tls_getKey() 361 u8 *eapKeyData, *emsk; in eap_tls_get_emsk() local 377 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, label, in eap_tls_get_emsk() 380 if (eapKeyData) { in eap_tls_get_emsk() 383 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_tls_get_emsk() [all …]
|
D | eap_server_peap.c | 1332 u8 *eapKeyData; in eap_peap_getKey() local 1353 eapKeyData = os_malloc(EAP_TLS_KEY_LEN); in eap_peap_getKey() 1354 if (eapKeyData) { in eap_peap_getKey() 1355 os_memcpy(eapKeyData, csk, EAP_TLS_KEY_LEN); in eap_peap_getKey() 1358 eapKeyData, EAP_TLS_KEY_LEN); in eap_peap_getKey() 1366 return eapKeyData; in eap_peap_getKey() 1378 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_peap_getKey() 1381 if (eapKeyData) { in eap_peap_getKey() 1382 os_memset(eapKeyData + EAP_TLS_KEY_LEN, 0, EAP_EMSK_LEN); in eap_peap_getKey() 1385 eapKeyData, EAP_TLS_KEY_LEN); in eap_peap_getKey() [all …]
|
D | eap_server.c | 238 bin_clear_free(sm->eap_if.eapKeyData, sm->eap_if.eapKeyDataLen); in SM_STATE() 239 sm->eap_if.eapKeyData = NULL; in SM_STATE() 520 bin_clear_free(sm->eap_if.eapKeyData, sm->eap_if.eapKeyDataLen); in SM_STATE() 522 sm->eap_if.eapKeyData = sm->m->getKey( in SM_STATE() 526 sm->eap_if.eapKeyData = NULL; in SM_STATE() 673 if (sm->eap_if.eapKeyData) in SM_STATE() 769 bin_clear_free(sm->eap_if.eapKeyData, sm->eap_if.eapKeyDataLen); in erp_send_finish_reauth() 771 sm->eap_if.eapKeyData = os_malloc(erp->rRK_len); in erp_send_finish_reauth() 772 if (!sm->eap_if.eapKeyData) in erp_send_finish_reauth() 780 sm->eap_if.eapKeyData, erp->rRK_len) < 0) { in erp_send_finish_reauth() [all …]
|
D | eap_server_fast.c | 1576 u8 *eapKeyData; in eap_fast_getKey() local 1581 eapKeyData = os_malloc(EAP_FAST_KEY_LEN); in eap_fast_getKey() 1582 if (eapKeyData == NULL) in eap_fast_getKey() 1585 if (eap_fast_derive_eap_msk(data->simck, eapKeyData) < 0) { in eap_fast_getKey() 1586 os_free(eapKeyData); in eap_fast_getKey() 1591 return eapKeyData; in eap_fast_getKey() 1598 u8 *eapKeyData; in eap_fast_get_emsk() local 1603 eapKeyData = os_malloc(EAP_EMSK_LEN); in eap_fast_get_emsk() 1604 if (eapKeyData == NULL) in eap_fast_get_emsk() 1607 if (eap_fast_derive_eap_emsk(data->simck, eapKeyData) < 0) { in eap_fast_get_emsk() [all …]
|
D | eap_server_ttls.c | 1273 u8 *eapKeyData; in eap_ttls_getKey() local 1290 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_ttls_getKey() 1293 if (eapKeyData) { in eap_ttls_getKey() 1296 eapKeyData, EAP_TLS_KEY_LEN); in eap_ttls_getKey() 1301 return eapKeyData; in eap_ttls_getKey() 1327 u8 *eapKeyData, *emsk; in eap_ttls_get_emsk() local 1344 eapKeyData = eap_server_tls_derive_key(sm, &data->ssl, in eap_ttls_get_emsk() 1347 if (eapKeyData) { in eap_ttls_get_emsk() 1350 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_ttls_get_emsk() 1352 bin_clear_free(eapKeyData, EAP_TLS_KEY_LEN + EAP_EMSK_LEN); in eap_ttls_get_emsk()
|
D | eap_server_teap.c | 2004 u8 *eapKeyData; in eap_teap_getKey() local 2009 eapKeyData = os_malloc(EAP_TEAP_KEY_LEN); in eap_teap_getKey() 2010 if (!eapKeyData) in eap_teap_getKey() 2016 eapKeyData) < 0) { in eap_teap_getKey() 2017 os_free(eapKeyData); in eap_teap_getKey() 2022 return eapKeyData; in eap_teap_getKey() 2029 u8 *eapKeyData; in eap_teap_get_emsk() local 2034 eapKeyData = os_malloc(EAP_EMSK_LEN); in eap_teap_get_emsk() 2035 if (!eapKeyData) in eap_teap_get_emsk() 2041 eapKeyData) < 0) { in eap_teap_get_emsk() [all …]
|
D | eap.h | 63 u8 *eapKeyData; member
|
/hostap-3.6.0/src/eap_peer/ |
D | eap.c | 109 if (sm->eapKeyData) { in eap_sm_free_key() 110 bin_clear_free(sm->eapKeyData, sm->eapKeyDataLen); in eap_sm_free_key() 111 sm->eapKeyData = NULL; in eap_sm_free_key() 937 sm->eapKeyData = sm->m->getKey(sm, sm->eap_method_priv, in SM_STATE() 1050 if (sm->eapKeyData != NULL) in SM_STATE() 1957 sm->eapKeyData = os_malloc(erp->rRK_len); in eap_peer_finish() 1958 if (!sm->eapKeyData) in eap_peer_finish() 1967 sm->eapKeyData, erp->rRK_len) < 0) { in eap_peer_finish() 1973 sm->eapKeyData, sm->eapKeyDataLen); in eap_peer_finish() 3021 if (sm->eapKeyData != NULL) in eap_notify_lower_layer_success() [all …]
|
D | eap_i.h | 336 u8 *eapKeyData; /* peer to lower layer */ member
|
/hostap-3.6.0/eap_example/ |
D | eap_example_server.c | 272 eap_ctx.eap_if->eapKeyData, in eap_example_server_step()
|
/hostap-3.6.0/src/radius/ |
D | radius_server.c | 936 if (code == RADIUS_CODE_ACCESS_ACCEPT && sess->eap_if->eapKeyData) { in radius_server_encapsulate_eap() 945 sess->eap_if->eapKeyData, len); in radius_server_encapsulate_eap() 958 sess->eap_if->eapKeyData, len); in radius_server_encapsulate_eap() 975 sess->eap_if->eapKeyData + len, in radius_server_encapsulate_eap() 976 len, sess->eap_if->eapKeyData, in radius_server_encapsulate_eap()
|
/hostap-3.6.0/src/ap/ |
D | ieee802_1x.c | 201 if (!sm->eap_if->eapKeyData || sm->eap_if->eapKeyDataLen < 64) { in ieee802_1x_tx_key_one() 216 os_memcpy(ekey + sizeof(key->key_iv), sm->eap_if->eapKeyData, 32); in ieee802_1x_tx_key_one() 229 hmac_md5(sm->eap_if->eapKeyData + 32, 32, buf, sizeof(*hdr) + len, in ieee802_1x_tx_key_one() 247 if (!sm || !sm->eap_if->eapKeyData) in ieee802_1x_tx_key() 2662 return sm->eap_if->eapKeyData; in ieee802_1x_get_key()
|