Home
last modified time | relevance | path

Searched refs:kek_len (Results 1 – 19 of 19) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Daes-wrap.c26 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument
40 ctx = aes_encrypt_init(kek, kek_len); in aes_wrap()
Daes-unwrap.c26 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument
39 ctx = aes_decrypt_init(kek, kek_len); in aes_unwrap()
Daes_wrap.h21 int __must_check aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain,
23 int __must_check aes_unwrap(const u8 *kek, size_t kek_len, int n,
Dcrypto_wolfssl.c412 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument
419 ret = wc_AesKeyWrap(kek, kek_len, plain, n * 8, cipher, (n + 1) * 8, in aes_wrap()
425 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument
433 ret = wc_AesKeyUnWrap(kek, kek_len, cipher, (n + 1) * 8, plain, n * 8, in aes_unwrap()
Dcrypto_openssl.c431 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument
438 if (AES_set_encrypt_key(kek, kek_len << 3, &actx)) in aes_wrap()
446 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument
454 if (AES_set_decrypt_key(kek, kek_len << 3, &actx)) in aes_unwrap()
Dcrypto_linux.c784 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument
797 skcipher = linux_af_alg_skcipher("kw(aes)", kek, kek_len); in aes_unwrap()
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ft.c686 size_t kek_len; in wpa_ft_process_gtk_subelem() local
690 kek_len = sm->ptk.kek2_len; in wpa_ft_process_gtk_subelem()
693 kek_len = sm->ptk.kek_len; in wpa_ft_process_gtk_subelem()
711 if (aes_unwrap(kek, kek_len, gtk_len / 8, gtk_elem + 11, gtk)) { in wpa_ft_process_gtk_subelem()
769 size_t kek_len; in wpa_ft_process_igtk_subelem() local
773 kek_len = sm->ptk.kek2_len; in wpa_ft_process_igtk_subelem()
776 kek_len = sm->ptk.kek_len; in wpa_ft_process_igtk_subelem()
805 if (aes_unwrap(kek, kek_len, igtk_len / 8, igtk_elem + 9, igtk)) { in wpa_ft_process_igtk_subelem()
Dwpa.c107 if (!ptk || !ptk->kek_len) in wpa_eapol_key_send()
137 wpa_hexdump_key(MSG_DEBUG, "WPA: KEK", ptk->kek, ptk->kek_len); in wpa_eapol_key_send()
142 if (aes_siv_encrypt(ptk->kek, ptk->kek_len, in wpa_eapol_key_send()
1674 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && sm->ptk.kek_len == 16) { in wpa_supplicant_process_1_of_2_wpa()
1688 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_process_1_of_2_wpa()
1713 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, maxkeylen / 8, in wpa_supplicant_process_1_of_2_wpa()
1966 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && sm->ptk.kek_len == 16) { in wpa_supplicant_decrypt_key_data()
1976 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_decrypt_key_data()
1992 (unsigned int) sm->ptk.kek_len); in wpa_supplicant_decrypt_key_data()
2009 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, *key_data_len / 8, in wpa_supplicant_decrypt_key_data()
[all …]
Dwpa.h80 void (*set_rekey_offload)(void *ctx, const u8 *kek, size_t kek_len,
456 size_t *kek_len, const u8 **snonce,
Dwpa_i.h303 sm->ctx->set_rekey_offload(sm->ctx->ctx, sm->ptk.kek, sm->ptk.kek_len, in wpa_sm_set_rekey_offload()
/external/wpa_supplicant_8/src/common/
Dwpa_common.c393 ptk->kek_len = wpa_kek_len(akmp, pmk_len); in wpa_pmk_to_ptk()
401 ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len; in wpa_pmk_to_ptk()
461 os_memcpy(ptk->kek, tmp + ptk->kck_len, ptk->kek_len); in wpa_pmk_to_ptk()
462 wpa_hexdump_key(MSG_DEBUG, "WPA: KEK", ptk->kek, ptk->kek_len); in wpa_pmk_to_ptk()
464 os_memcpy(ptk->tk, tmp + ptk->kck_len + ptk->kek_len, ptk->tk_len); in wpa_pmk_to_ptk()
592 ptk->kek_len = wpa_kek_len(akmp, pmk_len); in fils_pmk_to_ptk()
600 key_data_len = *ick_len + ptk->kek_len + ptk->tk_len; in fils_pmk_to_ptk()
638 os_memcpy(ptk->kek, tmp + *ick_len, ptk->kek_len); in fils_pmk_to_ptk()
639 wpa_hexdump_key(MSG_DEBUG, "FILS: KEK", ptk->kek, ptk->kek_len); in fils_pmk_to_ptk()
641 os_memcpy(ptk->tk, tmp + *ick_len + ptk->kek_len, ptk->tk_len); in fils_pmk_to_ptk()
[all …]
Dwpa_common.h217 size_t kek_len; member
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c2166 size_t kek_len; in wpa_ft_gtk_subelem() local
2170 kek_len = sm->PTK.kek2_len; in wpa_ft_gtk_subelem()
2173 kek_len = sm->PTK.kek_len; in wpa_ft_gtk_subelem()
2213 if (aes_wrap(kek, kek_len, key_len / 8, key, subelem + 13)) { in wpa_ft_gtk_subelem()
2216 (int) kek_len); in wpa_ft_gtk_subelem()
2233 size_t kek_len; in wpa_ft_igtk_subelem() local
2238 kek_len = sm->PTK.kek2_len; in wpa_ft_igtk_subelem()
2241 kek_len = sm->PTK.kek_len; in wpa_ft_igtk_subelem()
2261 if (aes_wrap(kek, kek_len, igtk_len / 8, in wpa_ft_igtk_subelem()
2265 (int) kek_len); in wpa_ft_igtk_subelem()
Dwpa_auth.c1529 sm->PTK.kek, sm->PTK.kek_len); in __wpa_send_eapol()
1534 if (aes_siv_encrypt(sm->PTK.kek, sm->PTK.kek_len, kde, kde_len, in __wpa_send_eapol()
1563 (unsigned int) sm->PTK.kek_len); in __wpa_send_eapol()
1564 if (aes_wrap(sm->PTK.kek, sm->PTK.kek_len, in __wpa_send_eapol()
1572 } else if (sm->PTK.kek_len == 16) { in __wpa_send_eapol()
1581 os_memcpy(ek + 16, sm->PTK.kek, sm->PTK.kek_len); in __wpa_send_eapol()
2301 if (aes_siv_decrypt(ptk->kek, ptk->kek_len, pos, key_data_len, in wpa_aead_decrypt()
2492 if (aes_siv_decrypt(sm->PTK.kek, sm->PTK.kek_len, crypt, end - crypt, in fils_decrypt_assoc()
2569 if (aes_siv_encrypt(sm->PTK.kek, sm->PTK.kek_len, in fils_encrypt_assoc()
4846 *fils_kek_len = sm->PTK.kek_len; in wpa_auth_get_fils_aead_params()
/external/wpa_supplicant_8/wpa_supplicant/
Ddriver_i.h582 const u8 *kek, size_t kek_len, in wpa_drv_set_rekey_info() argument
588 wpa_s->driver->set_rekey_info(wpa_s->drv_priv, kek, kek_len, in wpa_drv_set_rekey_info()
Dwpas_glue.c1145 const u8 *kek, size_t kek_len, in wpa_supplicant_set_rekey_offload() argument
1151 wpa_drv_set_rekey_info(wpa_s, kek, kek_len, kck, kck_len, replay_ctr); in wpa_supplicant_set_rekey_offload()
/external/wpa_supplicant_8/src/drivers/
Ddriver_atheros.c1094 mlme.fils_aad.kek_len = params->fils_kek_len; in atheros_sta_auth()
1101 mlme.fils_aad.kek, mlme.fils_aad.kek_len); in atheros_sta_auth()
Ddriver.h3501 void (*set_rekey_info)(void *priv, const u8 *kek, size_t kek_len,
Ddriver_nl80211.c8209 static void nl80211_set_rekey_info(void *priv, const u8 *kek, size_t kek_len, in nl80211_set_rekey_info() argument
8225 nla_put(msg, NL80211_REKEY_DATA_KEK, kek_len, kek) || in nl80211_set_rekey_info()