Home
last modified time | relevance | path

Searched refs:ek (Results 1 – 6 of 6) sorted by relevance

/hostap-3.6.0/src/crypto/
Ddes-internal.c403 u32 ek[32], work[2]; in des_encrypt() local
414 deskey(pkey, 0, ek); in des_encrypt()
418 desfunc(work, ek); in des_encrypt()
423 os_memset(ek, 0, sizeof(ek)); in des_encrypt()
428 void des_key_setup(const u8 *key, u32 *ek, u32 *dk) in des_key_setup() argument
430 deskey(key, 0, ek); in des_key_setup()
435 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) in des_block_encrypt() argument
440 desfunc(work, ek); in des_block_encrypt()
459 deskey(key, 0, dkey->ek[0]); in des3_key_setup()
460 deskey(key + 8, 1, dkey->ek[1]); in des3_key_setup()
[all …]
Ddes_i.h13 u32 ek[3][32]; member
17 void des_key_setup(const u8 *key, u32 *ek, u32 *dk);
18 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
Dcrypto_internal-cipher.c35 u32 ek[32]; member
91 des_key_setup(key, ctx->u.des.ek, ctx->u.des.dk); in crypto_cipher_init()
151 des_block_encrypt(ctx->u.des.cbc, ctx->u.des.ek, in crypto_cipher_encrypt()
/hostap-3.6.0/src/rsn_supp/
Dwpa.c1966 u8 ek[32]; in wpa_supplicant_process_1_of_2_wpa()
1973 os_memcpy(ek, key->key_iv, 16); in wpa_supplicant_process_1_of_2_wpa()
1974 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_process_1_of_2_wpa()
1976 if (rc4_skip(ek, 32, 256, gd->gtk, key_data_len)) { in wpa_supplicant_process_1_of_2_wpa()
1977 forced_memzero(ek, sizeof(ek)); in wpa_supplicant_process_1_of_2_wpa()
1982 forced_memzero(ek, sizeof(ek)); in wpa_supplicant_process_1_of_2_wpa()
2267 u8 ek[32]; in wpa_supplicant_decrypt_key_data()
2270 os_memcpy(ek, key->key_iv, 16); in wpa_supplicant_decrypt_key_data()
2271 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_decrypt_key_data()
2272 if (rc4_skip(ek, 32, 256, key_data, *key_data_len)) { in wpa_supplicant_decrypt_key_data()
[all …]
/hostap-3.6.0/wlantest/
Drx_eapol.c356 u8 ek[32], *buf; in decrypt_eapol_key_data_rc4() local
362 os_memcpy(ek, hdr->key_iv, 16); in decrypt_eapol_key_data_rc4()
363 os_memcpy(ek + 16, kek, 16); in decrypt_eapol_key_data_rc4()
364 if (rc4_skip(ek, 32, 256, buf, keydatalen)) { in decrypt_eapol_key_data_rc4()
/hostap-3.6.0/src/ap/
Dwpa_auth.c1651 u8 ek[32]; in __wpa_send_eapol() local
1658 os_memcpy(ek, key->key_iv, 16); in __wpa_send_eapol()
1659 os_memcpy(ek + 16, sm->PTK.kek, sm->PTK.kek_len); in __wpa_send_eapol()
1661 rc4_skip(ek, 32, 256, key_data, key_data_len); in __wpa_send_eapol()