Home
last modified time | relevance | path

Searched refs:kek_len (Results 1 – 18 of 18) 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_openssl.c300 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument
305 if (AES_set_encrypt_key(kek, kek_len << 3, &actx)) in aes_wrap()
313 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument
319 if (AES_set_decrypt_key(kek, kek_len << 3, &actx)) in aes_unwrap()
/external/wpa_supplicant_8/src/common/
Dwpa_common.c169 ptk->kek_len = wpa_kek_len(akmp); in wpa_pmk_to_ptk()
171 ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len; in wpa_pmk_to_ptk()
191 os_memcpy(ptk->kek, tmp + ptk->kck_len, ptk->kek_len); in wpa_pmk_to_ptk()
192 wpa_hexdump_key(MSG_DEBUG, "WPA: KEK", ptk->kek, ptk->kek_len); in wpa_pmk_to_ptk()
194 os_memcpy(ptk->tk, tmp + ptk->kck_len + ptk->kek_len, ptk->tk_len); in wpa_pmk_to_ptk()
962 ptk->kek_len = wpa_kek_len(akmp); in wpa_pmk_r1_to_ptk()
964 ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len; in wpa_pmk_r1_to_ptk()
989 os_memcpy(ptk->kek, tmp + ptk->kck_len, ptk->kek_len); in wpa_pmk_r1_to_ptk()
990 os_memcpy(ptk->tk, tmp + ptk->kck_len + ptk->kek_len, ptk->tk_len); in wpa_pmk_r1_to_ptk()
993 wpa_hexdump_key(MSG_DEBUG, "FT: KEK", ptk->kek, ptk->kek_len); in wpa_pmk_r1_to_ptk()
Dwpa_common.h214 size_t kek_len; member
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.c1346 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && sm->ptk.kek_len == 16) { in wpa_supplicant_process_1_of_2_wpa()
1355 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_process_1_of_2_wpa()
1379 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, maxkeylen / 8, in wpa_supplicant_process_1_of_2_wpa()
1577 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && sm->ptk.kek_len == 16) { in wpa_supplicant_decrypt_key_data()
1580 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_decrypt_key_data()
1606 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, *key_data_len / 8, in wpa_supplicant_decrypt_key_data()
2961 sm->ptk.kek_len = ptk_kek_len; in wpa_sm_set_ptk_kck_kek()
Dwpa_ft.c564 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, gtk_len / 8, gtk_elem + 11, in wpa_ft_process_gtk_subelem()
644 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, WPA_IGTK_LEN / 8, in wpa_ft_process_igtk_subelem()
Dwpa_i.h258 sm->ctx->set_rekey_offload(sm->ctx->ctx, sm->ptk.kek, sm->ptk.kek_len, in wpa_sm_set_rekey_offload()
Dwpa.h76 void (*set_rekey_offload)(void *ctx, const u8 *kek, size_t kek_len,
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_kay_i.h161 size_t kek_len; member
Dieee802_1x_kay.c3360 participant->kek.len = mka_alg_tbl[kay->mka_algindex].kek_len; in ieee802_1x_kay_create_mka()
/external/wpa_supplicant_8/wpa_supplicant/
Dwpas_glue.c1008 const u8 *kek, size_t kek_len, in wpa_supplicant_set_rekey_offload() argument
1014 wpa_drv_set_rekey_info(wpa_s, kek, kek_len, kck, kck_len, replay_ctr); in wpa_supplicant_set_rekey_offload()
Ddriver_i.h567 const u8 *kek, size_t kek_len, in wpa_drv_set_rekey_info() argument
573 wpa_s->driver->set_rekey_info(wpa_s->drv_priv, kek, kek_len, in wpa_drv_set_rekey_info()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth.c1531 if (aes_wrap(sm->PTK.kek, sm->PTK.kek_len, in __wpa_send_eapol()
1543 } else if (sm->PTK.kek_len == 16) { in __wpa_send_eapol()
1549 os_memcpy(ek + 16, sm->PTK.kek, sm->PTK.kek_len); in __wpa_send_eapol()
Dwpa_auth_ft.c459 if (aes_wrap(sm->PTK.kek, sm->PTK.kek_len, key_len / 8, key, in wpa_ft_gtk_subelem()
492 if (aes_wrap(sm->PTK.kek, sm->PTK.kek_len, WPA_IGTK_LEN / 8, in wpa_ft_igtk_subelem()
/external/wpa_supplicant_8/src/drivers/
Ddriver.h2903 void (*set_rekey_info)(void *priv, const u8 *kek, size_t kek_len,
Ddriver_nl80211.c6872 static void nl80211_set_rekey_info(void *priv, const u8 *kek, size_t kek_len, in nl80211_set_rekey_info() argument
6888 nla_put(msg, NL80211_REKEY_DATA_KEK, kek_len, kek) || in nl80211_set_rekey_info()