/external/wpa_supplicant_8/src/eap_common/ |
D | eap_psk_common.c | 19 int eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk) in eap_psk_key_setup() argument 24 os_memcpy(kdk, ak, aes_block_size); in eap_psk_key_setup() 26 kdk[aes_block_size - 1] ^= 0x02; in eap_psk_key_setup() 28 aes_128_encrypt_block(psk, kdk, kdk)) in eap_psk_key_setup() 34 int eap_psk_derive_keys(const u8 *kdk, const u8 *rand_p, u8 *tek, u8 *msk, in eap_psk_derive_keys() argument 41 if (aes_128_encrypt_block(kdk, rand_p, hash)) in eap_psk_derive_keys() 45 if (aes_128_encrypt_block(kdk, hash, tek)) in eap_psk_derive_keys() 52 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size])) in eap_psk_derive_keys() 60 if (aes_128_encrypt_block(kdk, hash, in eap_psk_derive_keys()
|
D | eap_psk_common.h | 68 int __must_check eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk); 69 int __must_check eap_psk_derive_keys(const u8 *kdk, const u8 *rand_p, u8 *tek,
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
D | eap_psk_common.c | 25 int eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk) in eap_psk_key_setup() argument 30 os_memcpy(kdk, ak, aes_block_size); in eap_psk_key_setup() 32 kdk[aes_block_size - 1] ^= 0x02; in eap_psk_key_setup() 34 aes_128_encrypt_block(psk, kdk, kdk)) in eap_psk_key_setup() 40 int eap_psk_derive_keys(const u8 *kdk, const u8 *rand_p, u8 *tek, u8 *msk, in eap_psk_derive_keys() argument 47 if (aes_128_encrypt_block(kdk, rand_p, hash)) in eap_psk_derive_keys() 51 if (aes_128_encrypt_block(kdk, hash, tek)) in eap_psk_derive_keys() 58 if (aes_128_encrypt_block(kdk, hash, &msk[i * aes_block_size])) in eap_psk_derive_keys() 66 if (aes_128_encrypt_block(kdk, hash, in eap_psk_derive_keys()
|
D | eap_psk_common.h | 74 int __must_check eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk); 75 int __must_check eap_psk_derive_keys(const u8 *kdk, const u8 *rand_p, u8 *tek,
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
D | wps_common.c | 67 u8 dhkey[SHA256_MAC_LEN], kdk[SHA256_MAC_LEN]; in wps_derive_keys() local 111 hmac_sha256_vector(dhkey, sizeof(dhkey), 3, addr, len, kdk); in wps_derive_keys() 112 wpa_hexdump_key(MSG_DEBUG, "WPS: KDK", kdk, sizeof(kdk)); in wps_derive_keys() 114 wps_kdf(kdk, NULL, 0, "Wi-Fi Easy and Secure Key Derivation", in wps_derive_keys()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_common.c | 62 u8 dhkey[SHA256_MAC_LEN], kdk[SHA256_MAC_LEN]; in wps_derive_keys() local 109 hmac_sha256_vector(dhkey, sizeof(dhkey), 3, addr, len, kdk); in wps_derive_keys() 110 wpa_hexdump_key(MSG_DEBUG, "WPS: KDK", kdk, sizeof(kdk)); in wps_derive_keys() 112 wps_kdf(kdk, NULL, 0, "Wi-Fi Easy and Secure Key Derivation", in wps_derive_keys()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_psk.c | 24 u8 ak[EAP_PSK_AK_LEN], kdk[EAP_PSK_KDK_LEN], tek[EAP_PSK_TEK_LEN]; member 48 if (eap_psk_key_setup(password, data->ak, data->kdk)) { in eap_psk_init() 53 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: KDK", data->kdk, EAP_PSK_KDK_LEN); in eap_psk_init() 247 if (eap_psk_derive_keys(data->kdk, data->rand_p, data->tek, in eap_psk_process_3()
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
D | eap_psk.c | 29 u8 ak[EAP_PSK_AK_LEN], kdk[EAP_PSK_KDK_LEN], tek[EAP_PSK_TEK_LEN]; member 53 if (eap_psk_key_setup(password, data->ak, data->kdk)) { in eap_psk_init() 58 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: KDK", data->kdk, EAP_PSK_KDK_LEN); in eap_psk_init() 252 if (eap_psk_derive_keys(data->kdk, data->rand_p, data->tek, in eap_psk_process_3()
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
D | eap_psk.c | 32 u8 ak[EAP_PSK_AK_LEN], kdk[EAP_PSK_KDK_LEN], tek[EAP_PSK_TEK_LEN]; member 131 if (eap_psk_derive_keys(data->kdk, data->rand_p, data->tek, data->msk, in eap_psk_build_3() 290 if (eap_psk_key_setup(sm->user->password, data->ak, data->kdk)) { in eap_psk_process_2() 295 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: KDK", data->kdk, EAP_PSK_KDK_LEN); in eap_psk_process_2()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_psk.c | 27 u8 ak[EAP_PSK_AK_LEN], kdk[EAP_PSK_KDK_LEN], tek[EAP_PSK_TEK_LEN]; member 128 if (eap_psk_derive_keys(data->kdk, data->rand_p, data->tek, data->msk, in eap_psk_build_3() 287 if (eap_psk_key_setup(sm->user->password, data->ak, data->kdk)) { in eap_psk_process_2() 292 wpa_hexdump_key(MSG_DEBUG, "EAP-PSK: KDK", data->kdk, EAP_PSK_KDK_LEN); in eap_psk_process_2()
|