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.c361 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument
366 if (AES_set_encrypt_key(kek, kek_len << 3, &actx)) in aes_wrap()
374 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument
380 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()
197 os_memcpy(ptk->kek, tmp + ptk->kck_len, ptk->kek_len); in wpa_pmk_to_ptk()
198 wpa_hexdump_key(MSG_DEBUG, "WPA: KEK", ptk->kek, ptk->kek_len); in wpa_pmk_to_ptk()
200 os_memcpy(ptk->tk, tmp + ptk->kck_len + ptk->kek_len, ptk->tk_len); in wpa_pmk_to_ptk()
989 ptk->kek_len = wpa_kek_len(akmp); in wpa_pmk_r1_to_ptk()
991 ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len; in wpa_pmk_r1_to_ptk()
1016 os_memcpy(ptk->kek, tmp + ptk->kck_len, ptk->kek_len); in wpa_pmk_r1_to_ptk()
1017 os_memcpy(ptk->tk, tmp + ptk->kck_len + ptk->kek_len, ptk->tk_len); in wpa_pmk_r1_to_ptk()
1020 wpa_hexdump_key(MSG_DEBUG, "FT: KEK", ptk->kek, ptk->kek_len); in wpa_pmk_r1_to_ptk()
Dwpa_common.h216 size_t kek_len; member
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.c1396 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && sm->ptk.kek_len == 16) { in wpa_supplicant_process_1_of_2_wpa()
1410 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_process_1_of_2_wpa()
1435 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, maxkeylen / 8, in wpa_supplicant_process_1_of_2_wpa()
1636 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && sm->ptk.kek_len == 16) { in wpa_supplicant_decrypt_key_data()
1644 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_decrypt_key_data()
1671 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, *key_data_len / 8, in wpa_supplicant_decrypt_key_data()
3043 sm->ptk.kek_len = ptk_kek_len; in wpa_sm_set_ptk_kck_kek()
Dwpa_ft.c562 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, gtk_len / 8, gtk_elem + 11, in wpa_ft_process_gtk_subelem()
642 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, WPA_IGTK_LEN / 8, in wpa_ft_process_igtk_subelem()
Dwpa_i.h264 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/
Ddriver_i.h565 const u8 *kek, size_t kek_len, in wpa_drv_set_rekey_info() argument
571 wpa_s->driver->set_rekey_info(wpa_s->drv_priv, kek, kek_len, in wpa_drv_set_rekey_info()
Dwpas_glue.c1016 const u8 *kek, size_t kek_len, in wpa_supplicant_set_rekey_offload() argument
1022 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/ap/
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()
Dwpa_auth.c1536 if (aes_wrap(sm->PTK.kek, sm->PTK.kek_len, in __wpa_send_eapol()
1549 } else if (sm->PTK.kek_len == 16) { in __wpa_send_eapol()
1555 os_memcpy(ek + 16, sm->PTK.kek, sm->PTK.kek_len); in __wpa_send_eapol()
/external/wpa_supplicant_8/src/drivers/
Ddriver.h3015 void (*set_rekey_info)(void *priv, const u8 *kek, size_t kek_len,
Ddriver_nl80211.c7174 static void nl80211_set_rekey_info(void *priv, const u8 *kek, size_t kek_len, in nl80211_set_rekey_info() argument
7190 nla_put(msg, NL80211_REKEY_DATA_KEK, kek_len, kek) || in nl80211_set_rekey_info()