Home
last modified time | relevance | path

Searched refs:msk (Results 1 – 25 of 58) sorted by relevance

123

/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Deap_gpsk_common.c120 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_helper() argument
177 os_memcpy(msk, pos, EAP_MSK_LEN); in eap_gpsk_derive_keys_helper()
199 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys_aes() argument
227 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_aes()
235 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_sha256() argument
261 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_sha256()
292 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys() argument
330 msk, emsk, sk, sk_len, in eap_gpsk_derive_keys()
336 msk, emsk, sk, sk_len); in eap_gpsk_derive_keys()
Deap_sim_common.h86 int eap_sim_derive_keys(const u8 *mk, u8 *k_encr, u8 *k_aut, u8 *msk,
90 const u8 *nonce_s, const u8 *mk, u8 *msk,
100 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk);
103 const u8 *nonce_s, u8 *msk, u8 *emsk);
118 u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys() argument
125 const u8 *nonce_s, u8 *msk, in eap_aka_prime_derive_keys_reauth() argument
Deap_sim_common.c82 int eap_sim_derive_keys(const u8 *mk, u8 *k_encr, u8 *k_aut, u8 *msk, u8 *emsk) in eap_sim_derive_keys() argument
95 os_memcpy(msk, pos, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys()
104 msk, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys()
114 const u8 *nonce_s, const u8 *mk, u8 *msk, in eap_sim_derive_keys_reauth() argument
155 if (msk) { in eap_sim_derive_keys_reauth()
156 os_memcpy(msk, buf, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys_reauth()
158 msk, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys_reauth()
283 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys() argument
321 os_memcpy(msk, pos, EAP_MSK_LEN); in eap_aka_prime_derive_keys()
322 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': MSK", msk, EAP_MSK_LEN); in eap_aka_prime_derive_keys()
[all …]
Deap_psk_common.c40 int eap_psk_derive_keys(const u8 *kdk, const u8 *rand_p, u8 *tek, u8 *msk, in eap_psk_derive_keys() argument
58 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size])) in eap_psk_derive_keys()
Deap_fast_common.c151 void eap_fast_derive_eap_msk(const u8 *simck, u8 *msk) in eap_fast_derive_eap_msk() argument
160 msk, EAP_FAST_KEY_LEN); in eap_fast_derive_eap_msk()
162 msk, EAP_FAST_KEY_LEN); in eap_fast_derive_eap_msk()
Deap_sake_common.c266 const u8 *rand_s, const u8 *rand_p, u8 *tek, u8 *msk, in eap_sake_derive_keys() argument
300 os_memcpy(msk, key_buf, EAP_MSK_LEN); in eap_sake_derive_keys()
302 wpa_hexdump_key(MSG_DEBUG, "EAP-SAKE: MSK", msk, EAP_MSK_LEN); in eap_sake_derive_keys()
Deap_gpsk_common.h60 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len,
Deap_psk_common.h76 u8 *msk, u8 *emsk);
/external/wpa_supplicant_8/src/eap_common/
Deap_gpsk_common.c111 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_helper() argument
168 os_memcpy(msk, pos, EAP_MSK_LEN); in eap_gpsk_derive_keys_helper()
190 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys_aes() argument
218 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_aes()
226 u8 *msk, u8 *emsk, in eap_gpsk_derive_keys_sha256() argument
252 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_sha256()
283 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys() argument
321 msk, emsk, sk, sk_len, in eap_gpsk_derive_keys()
327 msk, emsk, sk, sk_len); in eap_gpsk_derive_keys()
Deap_sim_common.h80 int eap_sim_derive_keys(const u8 *mk, u8 *k_encr, u8 *k_aut, u8 *msk,
84 const u8 *nonce_s, const u8 *mk, u8 *msk,
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
119 const u8 *nonce_s, u8 *msk, in eap_aka_prime_derive_keys_reauth() argument
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
90 os_memcpy(msk, pos, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys()
99 msk, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys()
109 const u8 *nonce_s, const u8 *mk, u8 *msk, in eap_sim_derive_keys_reauth() argument
150 if (msk) { in eap_sim_derive_keys_reauth()
151 os_memcpy(msk, buf, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys_reauth()
153 msk, EAP_SIM_KEYING_DATA_LEN); in eap_sim_derive_keys_reauth()
278 u8 *k_aut, u8 *k_re, u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys() argument
316 os_memcpy(msk, pos, EAP_MSK_LEN); in eap_aka_prime_derive_keys()
317 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': MSK", msk, EAP_MSK_LEN); in eap_aka_prime_derive_keys()
[all …]
Deap_psk_common.c34 int eap_psk_derive_keys(const u8 *kdk, const u8 *rand_p, u8 *tek, u8 *msk, in eap_psk_derive_keys() argument
52 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size])) in eap_psk_derive_keys()
Deap_fast_common.c145 void eap_fast_derive_eap_msk(const u8 *simck, u8 *msk) in eap_fast_derive_eap_msk() argument
154 msk, EAP_FAST_KEY_LEN); in eap_fast_derive_eap_msk()
156 msk, EAP_FAST_KEY_LEN); in eap_fast_derive_eap_msk()
Deap_sake_common.c260 const u8 *rand_s, const u8 *rand_p, u8 *tek, u8 *msk, in eap_sake_derive_keys() argument
294 os_memcpy(msk, key_buf, EAP_MSK_LEN); in eap_sake_derive_keys()
296 wpa_hexdump_key(MSG_DEBUG, "EAP-SAKE: MSK", msk, EAP_MSK_LEN); in eap_sake_derive_keys()
Deap_psk_common.h70 u8 *msk, u8 *emsk);
Deap_gpsk_common.h54 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len,
/external/wpa_supplicant_6/wpa_supplicant/tests/
Dtest_sha1.c89 const u8 msk[] = { in test_eap_fast() local
160 (u8 *) "", 0, buf, sizeof(msk)); in test_eap_fast()
161 if (memcmp(msk, buf, sizeof(msk)) != 0) { in test_eap_fast()
168 (u8 *) "", 0, buf, sizeof(msk)); in test_eap_fast()
/external/wpa_supplicant_8/src/eap_peer/
Deap_psk.c27 u8 msk[EAP_MSK_LEN]; member
248 data->msk, data->emsk)) { in eap_psk_process_3()
254 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: MSK", data->msk, EAP_MSK_LEN); in eap_psk_process_3()
431 os_memcpy(key, data->msk, EAP_MSK_LEN); in eap_psk_getKey()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
Deap_psk.c32 u8 msk[EAP_MSK_LEN]; member
253 data->msk, data->emsk)) { in eap_psk_process_3()
259 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: MSK", data->msk, EAP_MSK_LEN); in eap_psk_process_3()
436 os_memcpy(key, data->msk, EAP_MSK_LEN); in eap_psk_getKey()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/
Deap_psk.c33 u8 msk[EAP_MSK_LEN]; member
131 if (eap_psk_derive_keys(data->kdk, data->rand_p, data->tek, data->msk, in eap_psk_build_3()
135 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: MSK", data->msk, EAP_MSK_LEN); in eap_psk_build_3()
461 os_memcpy(key, data->msk, EAP_MSK_LEN); in eap_psk_getKey()
Deap_sim.c29 u8 msk[EAP_SIM_KEYING_DATA_LEN]; member
240 eap_sim_derive_keys(data->mk, data->k_encr, data->k_aut, data->msk, in eap_sim_build_reauth()
244 data->msk, data->emsk); in eap_sim_build_reauth()
501 eap_sim_derive_keys(data->mk, data->k_encr, data->k_aut, data->msk, in eap_sim_process_start()
743 os_memcpy(key, data->msk, EAP_SIM_KEYING_DATA_LEN); in eap_sim_getKey()
Deap_aka.c32 u8 msk[EAP_SIM_KEYING_DATA_LEN]; member
454 data->msk, data->emsk); in eap_aka_build_reauth()
457 data->msk, data->emsk); in eap_aka_build_reauth()
460 data->mk, data->msk, data->emsk); in eap_aka_build_reauth()
743 data->k_re, data->msk, data->emsk); in eap_aka_determine_identity()
748 data->msk, data->emsk); in eap_aka_determine_identity()
1193 os_memcpy(key, data->msk, EAP_SIM_KEYING_DATA_LEN); in eap_aka_getKey()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_psk.c28 u8 msk[EAP_MSK_LEN]; member
128 if (eap_psk_derive_keys(data->kdk, data->rand_p, data->tek, data->msk, in eap_psk_build_3()
132 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: MSK", data->msk, EAP_MSK_LEN); in eap_psk_build_3()
458 os_memcpy(key, data->msk, EAP_MSK_LEN); in eap_psk_getKey()
Deap_server_sim.c24 u8 msk[EAP_SIM_KEYING_DATA_LEN]; member
235 eap_sim_derive_keys(data->mk, data->k_encr, data->k_aut, data->msk, in eap_sim_build_reauth()
239 data->msk, data->emsk); in eap_sim_build_reauth()
496 eap_sim_derive_keys(data->mk, data->k_encr, data->k_aut, data->msk, in eap_sim_process_start()
738 os_memcpy(key, data->msk, EAP_SIM_KEYING_DATA_LEN); in eap_sim_getKey()
Deap_server_aka.c26 u8 msk[EAP_SIM_KEYING_DATA_LEN]; member
447 data->msk, data->emsk); in eap_aka_build_reauth()
450 data->msk, data->emsk); in eap_aka_build_reauth()
453 data->mk, data->msk, data->emsk); in eap_aka_build_reauth()
736 data->k_re, data->msk, data->emsk); in eap_aka_determine_identity()
741 data->msk, data->emsk); in eap_aka_determine_identity()
1186 os_memcpy(key, data->msk, EAP_SIM_KEYING_DATA_LEN); in eap_aka_getKey()

123