/freebsd/contrib/wpa/src/crypto/ |
H A D | aes-wrap.c | 26 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()
|
H A D | aes-unwrap.c | 26 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()
|
H A D | aes_wrap.h | 21 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,
|
H A D | crypto_linux.c | 784 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()
|
H A D | crypto_wolfssl.c | 692 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument 700 ret = wc_AesKeyWrap(kek, kek_len, plain, n * 8, cipher, (n + 1) * 8, in aes_wrap() 709 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument 718 ret = wc_AesKeyUnWrap(kek, kek_len, cipher, (n + 1) * 8, plain, n * 8, in aes_unwrap()
|
H A D | crypto_openssl.c | 595 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument 606 type = aes_get_evp_wrap_cipher(kek_len); in aes_wrap() 629 if (AES_set_encrypt_key(kek, kek_len << 3, &actx)) in aes_wrap() 638 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument 650 type = aes_get_evp_wrap_cipher(kek_len); in aes_unwrap() 673 if (AES_set_decrypt_key(kek, kek_len << 3, &actx)) in aes_unwrap()
|
/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | wpa_ft.c | 807 size_t kek_len; in wpa_ft_process_gtk_subelem() local 811 kek_len = sm->ptk.kek2_len; in wpa_ft_process_gtk_subelem() 814 kek_len = sm->ptk.kek_len; in wpa_ft_process_gtk_subelem() 832 if (aes_unwrap(kek, kek_len, gtk_len / 8, gtk_elem + 11, gtk)) { in wpa_ft_process_gtk_subelem() 890 size_t kek_len; in wpa_ft_process_igtk_subelem() local 894 kek_len = sm->ptk.kek2_len; in wpa_ft_process_igtk_subelem() 897 kek_len = sm->ptk.kek_len; in wpa_ft_process_igtk_subelem() 926 if (aes_unwrap(kek, kek_len, igtk_len / 8, igtk_elem + 9, igtk)) { in wpa_ft_process_igtk_subelem() 960 size_t kek_len; in wpa_ft_process_bigtk_subelem() local 971 kek_len = sm->ptk.kek2_len; in wpa_ft_process_bigtk_subelem() [all …]
|
H A D | wpa.c | 148 if (!ptk || !ptk->kek_len) in wpa_eapol_key_send() 178 wpa_hexdump_key(MSG_DEBUG, "WPA: KEK", ptk->kek, ptk->kek_len); in wpa_eapol_key_send() 183 if (aes_siv_encrypt(ptk->kek, ptk->kek_len, in wpa_eapol_key_send() 661 ptk->kek, ptk->kek_len); in wpa_supplicant_send_2_of_4() 662 if (aes_wrap(ptk->kek, ptk->kek_len, plain_len / 8, plain, in wpa_supplicant_send_2_of_4() 2320 ptk->kek, ptk->kek_len); in wpa_supplicant_send_4_of_4() 2321 if (aes_wrap(ptk->kek, ptk->kek_len, plain_len / 8, plain, in wpa_supplicant_send_4_of_4() 3041 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && sm->ptk.kek_len == 16) { in wpa_supplicant_process_1_of_2_wpa() 3055 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_process_1_of_2_wpa() 3080 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, maxkeylen / 8, in wpa_supplicant_process_1_of_2_wpa() [all …]
|
H A D | wpa.h | 90 void (*set_rekey_offload)(void *ctx, const u8 *kek, size_t kek_len, 603 size_t *kek_len, const u8 **snonce,
|
H A D | wpa_i.h | 369 sm->ctx->set_rekey_offload(sm->ctx->ctx, sm->ptk.kek, sm->ptk.kek_len, in wpa_sm_set_rekey_offload()
|
/freebsd/contrib/wpa/src/common/ |
H A D | sae_pk.c | 629 if (tmp->kek_len != 32 && tmp->kek_len != 48 && tmp->kek_len != 64) { in sae_write_confirm_pk() 688 if (aes_siv_encrypt(tmp->kek, tmp->kek_len, in sae_write_confirm_pk() 789 if (tmp->kek_len != 32 && tmp->kek_len != 48 && tmp->kek_len != 64) { in sae_check_confirm_pk() 825 if (aes_siv_decrypt(tmp->kek, tmp->kek_len, in sae_check_confirm_pk()
|
H A D | wpa_common.c | 453 ptk->kek_len = wpa_kek_len(akmp, pmk_len); in wpa_pmk_to_ptk() 462 ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len + ptk->kdk_len; in wpa_pmk_to_ptk() 570 os_memcpy(ptk->kek, tmp + ptk->kck_len, ptk->kek_len); in wpa_pmk_to_ptk() 571 wpa_hexdump_key(MSG_DEBUG, "WPA: KEK", ptk->kek, ptk->kek_len); in wpa_pmk_to_ptk() 573 os_memcpy(ptk->tk, tmp + ptk->kck_len + ptk->kek_len, ptk->tk_len); in wpa_pmk_to_ptk() 577 os_memcpy(ptk->kdk, tmp + ptk->kck_len + ptk->kek_len + in wpa_pmk_to_ptk() 711 ptk->kek_len = wpa_kek_len(akmp, pmk_len); in fils_pmk_to_ptk() 719 key_data_len = *ick_len + ptk->kek_len + ptk->tk_len; in fils_pmk_to_ptk() 771 os_memcpy(ptk->kek, tmp + offset, ptk->kek_len); in fils_pmk_to_ptk() 772 wpa_hexdump_key(MSG_DEBUG, "FILS: KEK", ptk->kek, ptk->kek_len); in fils_pmk_to_ptk() [all …]
|
H A D | sae.h | 70 size_t kek_len; member
|
H A D | common_module_tests.c | 744 if (ptk.kek_len != sizeof(kek) || in pasn_test_no_pasn_auth()
|
H A D | wpa_common.h | 265 size_t kek_len; member
|
H A D | sae.c | 1643 sae->tmp->kek_len = hash_len; in sae_derive_keys() 1645 sae->tmp->kek, sae->tmp->kek_len); in sae_derive_keys()
|
/freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
H A D | d3.h | 487 __le16 kek_len; 495 __le16 kek_len; 508 __le16 kek_len; 485 __le16 kek_len; global() member 493 __le16 kek_len; global() member 506 __le16 kek_len; global() member
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wpa_auth_ft.c | 2225 size_t kek_len; in wpa_ft_gtk_subelem() local 2229 kek_len = sm->PTK.kek2_len; in wpa_ft_gtk_subelem() 2232 kek_len = sm->PTK.kek_len; in wpa_ft_gtk_subelem() 2290 if (aes_wrap(kek, kek_len, key_len / 8, key, subelem + 13)) { in wpa_ft_gtk_subelem() 2293 (int) kek_len); in wpa_ft_gtk_subelem() 2312 size_t kek_len; in wpa_ft_igtk_subelem() local 2318 kek_len = sm->PTK.kek2_len; in wpa_ft_igtk_subelem() 2321 kek_len = sm->PTK.kek_len; in wpa_ft_igtk_subelem() 2353 if (aes_wrap(kek, kek_len, igtk_len / 8, igtk, pos)) { in wpa_ft_igtk_subelem() 2356 (int) kek_len); in wpa_ft_igtk_subelem() [all …]
|
H A D | wpa_auth.c | 1635 if (aes_unwrap(sm->PTK.kek, sm->PTK.kek_len, 2080 sm->PTK.kek, sm->PTK.kek_len); 2085 if (aes_siv_encrypt(sm->PTK.kek, sm->PTK.kek_len, kde, kde_len, 2114 sm->PTK.kek, sm->PTK.kek_len); 2115 if (aes_wrap(sm->PTK.kek, sm->PTK.kek_len, 2126 } else if (sm->PTK.kek_len == 16) { 2135 os_memcpy(ek + 16, sm->PTK.kek, sm->PTK.kek_len); 3075 if (aes_siv_decrypt(ptk->kek, ptk->kek_len, pos, key_data_len, 3266 if (aes_siv_decrypt(sm->PTK.kek, sm->PTK.kek_len, crypt, end - crypt, 3343 if (aes_siv_encrypt(sm->PTK.kek, sm->PTK.kek_len, [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | d3.c | 32 mvmvif->rekey_data.kek_len = data->kek_len; in iwl_mvm_set_rekey_data() 34 memcpy(mvmvif->rekey_data.kek, data->kek, data->kek_len); in iwl_mvm_set_rekey_data() 1094 mvmvif->rekey_data.kek_len); in iwl_mvm_wowlan_config_key_params() 1095 kek_kck_cmd.kek_len = cpu_to_le16(mvmvif->rekey_data.kek_len); in iwl_mvm_wowlan_config_key_params()
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | driver_i.h | 612 const u8 *kek, size_t kek_len, in wpa_drv_set_rekey_info() argument 618 wpa_s->driver->set_rekey_info(wpa_s->drv_priv, kek, kek_len, in wpa_drv_set_rekey_info()
|
H A D | wpas_glue.c | 1239 const u8 *kek, size_t kek_len, in wpa_supplicant_set_rekey_offload() argument 1245 wpa_drv_set_rekey_info(wpa_s, kek, kek_len, kck, kck_len, replay_ctr); in wpa_supplicant_set_rekey_offload()
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_atheros.c | 1088 mlme.fils_aad.kek_len = params->fils_kek_len; in atheros_sta_auth() 1095 mlme.fils_aad.kek, mlme.fils_aad.kek_len); in atheros_sta_auth()
|
H A D | driver.h | 4397 void (*set_rekey_info)(void *priv, const u8 *kek, size_t kek_len,
|
/freebsd/crypto/openssl/test/ |
H A D | evp_extra_test.c | 1298 int len, kek_len, ciphertext_len, plaintext_len; in test_EVP_Enveloped() local 1314 || !TEST_true(EVP_SealInit(ctx, type, &kek, &kek_len, iv, in test_EVP_Enveloped() 1324 if (!TEST_true(EVP_OpenInit(ctx, type, kek, kek_len, iv, keypair)) in test_EVP_Enveloped()
|