Home
last modified time | relevance | path

Searched refs:emsk (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_sim_common.h81 u8 *emsk);
85 u8 *emsk);
94 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk);
97 const u8 *nonce_s, u8 *msk, u8 *emsk);
112 u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys() argument
120 u8 *emsk) in eap_aka_prime_derive_keys_reauth() argument
Deap_gpsk_common.c112 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_helper() argument
173 os_memcpy(emsk, pos, EAP_EMSK_LEN); in eap_gpsk_derive_keys_helper()
191 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys_aes() argument
219 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_aes()
227 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_sha256() argument
253 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_sha256()
284 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys() argument
320 msk, emsk, sk, sk_len, in eap_gpsk_derive_keys()
327 msk, emsk, sk, sk_len); in eap_gpsk_derive_keys()
Deap_sim_common.c77 int eap_sim_derive_keys(const u8 *mk, u8 *k_encr, u8 *k_aut, u8 *msk, u8 *emsk) in eap_sim_derive_keys() argument
92 os_memcpy(emsk, pos, EAP_EMSK_LEN); in eap_sim_derive_keys()
100 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: EMSK", emsk, EAP_EMSK_LEN); in eap_sim_derive_keys()
110 u8 *emsk) in eap_sim_derive_keys_reauth() argument
155 if (emsk) { in eap_sim_derive_keys_reauth()
156 os_memcpy(emsk, buf + EAP_SIM_KEYING_DATA_LEN, EAP_EMSK_LEN); in eap_sim_derive_keys_reauth()
157 wpa_hexdump(MSG_DEBUG, "EAP-SIM: EMSK", emsk, EAP_EMSK_LEN); in eap_sim_derive_keys_reauth()
277 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys() argument
319 os_memcpy(emsk, pos, EAP_EMSK_LEN); in eap_aka_prime_derive_keys()
320 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': EMSK", emsk, EAP_EMSK_LEN); in eap_aka_prime_derive_keys()
[all …]
Deap_teap_common.c103 int eap_teap_derive_eap_emsk(u16 tls_cs, const u8 *simck, u8 *emsk) in eap_teap_derive_eap_emsk() argument
113 (u8 *) "", 0, emsk, EAP_EMSK_LEN) < 0) in eap_teap_derive_eap_emsk()
116 emsk, EAP_EMSK_LEN); in eap_teap_derive_eap_emsk()
148 const u8 *emsk, size_t emsk_len, in eap_teap_derive_imck() argument
172 wpa_hexdump_key(MSG_DEBUG, "EAP-TEAP: EMSK[j]", emsk, emsk_len); in eap_teap_derive_imck()
174 if (emsk && emsk_len > 0) { in eap_teap_derive_imck()
180 if (eap_teap_tls_prf(tls_cs, emsk, emsk_len, in eap_teap_derive_imck()
Deap_psk_common.c35 u8 *emsk) in eap_psk_derive_keys() argument
61 &emsk[i * aes_block_size])) in eap_psk_derive_keys()
Deap_fast_common.c130 int eap_fast_derive_eap_emsk(const u8 *simck, u8 *emsk) in eap_fast_derive_eap_emsk() argument
140 emsk, EAP_EMSK_LEN) < 0) in eap_fast_derive_eap_emsk()
143 emsk, EAP_EMSK_LEN); in eap_fast_derive_eap_emsk()
Deap_sake_common.c267 u8 *emsk) in eap_sake_derive_keys() argument
305 os_memcpy(emsk, key_buf + EAP_MSK_LEN, EAP_EMSK_LEN); in eap_sake_derive_keys()
307 wpa_hexdump_key(MSG_DEBUG, "EAP-SAKE: EMSK", emsk, EAP_EMSK_LEN); in eap_sake_derive_keys()
Deap_teap_common.h207 int eap_teap_derive_eap_emsk(u16 tls_cs, const u8 *simck, u8 *emsk);
213 const u8 *emsk, size_t emsk_len,
Deap_psk_common.h70 u8 *msk, u8 *emsk);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_sim_common.h81 u8 *emsk);
85 u8 *emsk);
94 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk);
97 const u8 *nonce_s, u8 *msk, u8 *emsk);
112 u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys() argument
120 u8 *emsk) in eap_aka_prime_derive_keys_reauth() argument
Deap_gpsk_common.c112 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_helper() argument
173 os_memcpy(emsk, pos, EAP_EMSK_LEN); in eap_gpsk_derive_keys_helper()
191 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys_aes() argument
219 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_aes()
227 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_sha256() argument
253 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_sha256()
284 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys() argument
320 msk, emsk, sk, sk_len, in eap_gpsk_derive_keys()
327 msk, emsk, sk, sk_len); in eap_gpsk_derive_keys()
Deap_teap_common.c97 int eap_teap_derive_eap_emsk(const u8 *simck, u8 *emsk) in eap_teap_derive_eap_emsk() argument
107 (u8 *) "", 0, emsk, EAP_EMSK_LEN) < 0) in eap_teap_derive_eap_emsk()
110 emsk, EAP_EMSK_LEN); in eap_teap_derive_eap_emsk()
141 const u8 *emsk, size_t emsk_len, in eap_teap_derive_imck() argument
165 wpa_hexdump_key(MSG_DEBUG, "EAP-TEAP: EMSK[j]", emsk, emsk_len); in eap_teap_derive_imck()
167 if (emsk && emsk_len > 0) { in eap_teap_derive_imck()
173 if (eap_teap_tls_prf(emsk, emsk_len, "TEAPbindkey@ietf.org", in eap_teap_derive_imck()
Deap_sim_common.c77 int eap_sim_derive_keys(const u8 *mk, u8 *k_encr, u8 *k_aut, u8 *msk, u8 *emsk) in eap_sim_derive_keys() argument
92 os_memcpy(emsk, pos, EAP_EMSK_LEN); in eap_sim_derive_keys()
100 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: EMSK", emsk, EAP_EMSK_LEN); in eap_sim_derive_keys()
110 u8 *emsk) in eap_sim_derive_keys_reauth() argument
155 if (emsk) { in eap_sim_derive_keys_reauth()
156 os_memcpy(emsk, buf + EAP_SIM_KEYING_DATA_LEN, EAP_EMSK_LEN); in eap_sim_derive_keys_reauth()
157 wpa_hexdump(MSG_DEBUG, "EAP-SIM: EMSK", emsk, EAP_EMSK_LEN); in eap_sim_derive_keys_reauth()
277 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys() argument
319 os_memcpy(emsk, pos, EAP_EMSK_LEN); in eap_aka_prime_derive_keys()
320 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': EMSK", emsk, EAP_EMSK_LEN); in eap_aka_prime_derive_keys()
[all …]
Deap_psk_common.c35 u8 *emsk) in eap_psk_derive_keys() argument
61 &emsk[i * aes_block_size])) in eap_psk_derive_keys()
Deap_fast_common.c130 int eap_fast_derive_eap_emsk(const u8 *simck, u8 *emsk) in eap_fast_derive_eap_emsk() argument
140 emsk, EAP_EMSK_LEN) < 0) in eap_fast_derive_eap_emsk()
143 emsk, EAP_EMSK_LEN); in eap_fast_derive_eap_emsk()
Deap_sake_common.c267 u8 *emsk) in eap_sake_derive_keys() argument
305 os_memcpy(emsk, key_buf + EAP_MSK_LEN, EAP_EMSK_LEN); in eap_sake_derive_keys()
307 wpa_hexdump_key(MSG_DEBUG, "EAP-SAKE: EMSK", emsk, EAP_EMSK_LEN); in eap_sake_derive_keys()
Deap_teap_common.h199 int eap_teap_derive_eap_emsk(const u8 *simck, u8 *emsk);
203 const u8 *emsk, size_t emsk_len,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_tls.c361 u8 *eapKeyData, *emsk; in eap_tls_get_emsk() local
381 emsk = os_malloc(EAP_EMSK_LEN); in eap_tls_get_emsk()
382 if (emsk) in eap_tls_get_emsk()
383 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_tls_get_emsk()
387 emsk = NULL; in eap_tls_get_emsk()
389 if (emsk) { in eap_tls_get_emsk()
392 emsk, EAP_EMSK_LEN); in eap_tls_get_emsk()
397 return emsk; in eap_tls_get_emsk()
Deap_server_ttls.c1327 u8 *eapKeyData, *emsk; in eap_ttls_get_emsk() local
1348 emsk = os_malloc(EAP_EMSK_LEN); in eap_ttls_get_emsk()
1349 if (emsk) in eap_ttls_get_emsk()
1350 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_ttls_get_emsk()
1354 emsk = NULL; in eap_ttls_get_emsk()
1356 if (emsk) { in eap_ttls_get_emsk()
1359 emsk, EAP_EMSK_LEN); in eap_ttls_get_emsk()
1364 return emsk; in eap_ttls_get_emsk()
Deap_server_psk.c29 u8 emsk[EAP_EMSK_LEN]; member
127 data->emsk)) in eap_psk_build_3()
131 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: EMSK", data->emsk, EAP_EMSK_LEN); in eap_psk_build_3()
468 key = os_memdup(data->emsk, EAP_EMSK_LEN); in eap_psk_get_emsk()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_tls.c393 u8 *eapKeyData, *emsk; in eap_tls_get_emsk() local
413 emsk = os_malloc(EAP_EMSK_LEN); in eap_tls_get_emsk()
414 if (emsk) in eap_tls_get_emsk()
415 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_tls_get_emsk()
419 emsk = NULL; in eap_tls_get_emsk()
421 if (emsk) { in eap_tls_get_emsk()
424 emsk, EAP_EMSK_LEN); in eap_tls_get_emsk()
429 return emsk; in eap_tls_get_emsk()
Deap_server_ttls.c1307 u8 *eapKeyData, *emsk; in eap_ttls_get_emsk() local
1316 emsk = os_malloc(EAP_EMSK_LEN); in eap_ttls_get_emsk()
1317 if (emsk) in eap_ttls_get_emsk()
1318 os_memcpy(emsk, eapKeyData + EAP_TLS_KEY_LEN, in eap_ttls_get_emsk()
1322 emsk = NULL; in eap_ttls_get_emsk()
1324 if (emsk) { in eap_ttls_get_emsk()
1327 emsk, EAP_EMSK_LEN); in eap_ttls_get_emsk()
1332 return emsk; in eap_ttls_get_emsk()
Deap_server_psk.c29 u8 emsk[EAP_EMSK_LEN]; member
127 data->emsk)) in eap_psk_build_3()
131 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: EMSK", data->emsk, EAP_EMSK_LEN); in eap_psk_build_3()
468 key = os_memdup(data->emsk, EAP_EMSK_LEN); in eap_psk_get_emsk()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_psk.c29 u8 emsk[EAP_EMSK_LEN]; member
249 data->msk, data->emsk)) { in eap_psk_process_3()
256 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: EMSK", data->emsk, EAP_EMSK_LEN); in eap_psk_process_3()
466 key = os_memdup(data->emsk, EAP_EMSK_LEN); in eap_psk_get_emsk()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_psk.c29 u8 emsk[EAP_EMSK_LEN]; member
249 data->msk, data->emsk)) { in eap_psk_process_3()
256 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: EMSK", data->emsk, EAP_EMSK_LEN); in eap_psk_process_3()
466 key = os_memdup(data->emsk, EAP_EMSK_LEN); in eap_psk_get_emsk()

1234