Home
last modified time | relevance | path

Searched refs:kek (Results 1 – 21 of 21) sorted by relevance

/NextBSD/contrib/wpa/src/crypto/
HDaes-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()
HDaes-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()
HDaes_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,
HDcrypto_openssl.c309 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) in aes_wrap() argument
314 if (AES_set_encrypt_key(kek, kek_len << 3, &actx)) in aes_wrap()
322 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, in aes_unwrap() argument
328 if (AES_set_decrypt_key(kek, kek_len << 3, &actx)) in aes_unwrap()
/NextBSD/crypto/openssl/crypto/cms/
HDcms_kari.c244 unsigned char kek[EVP_MAX_KEY_LENGTH]; in cms_kek_cipher() local
253 if (EVP_PKEY_derive(kari->pctx, kek, &keklen) <= 0) in cms_kek_cipher()
256 if (!EVP_CipherInit_ex(&kari->ctx, NULL, NULL, kek, NULL, enc)) in cms_kek_cipher()
271 OPENSSL_cleanse(kek, keklen); in cms_kek_cipher()
/NextBSD/contrib/wpa/src/pae/
HDieee802_1x_key.c129 size_t ckn_bytes, u8 *kek) in ieee802_1x_kek_128bits_aes_cmac() argument
138 128, kek); in ieee802_1x_kek_128bits_aes_cmac()
HDieee802_1x_key.h18 size_t ckn_bytes, u8 *kek);
HDieee802_1x_kay_i.h168 int (*kek_trfm)(const u8 *cak, const u8 *ckn, size_t ckn_len, u8 *kek);
199 struct mka_key kek; member
HDieee802_1x_kay.c1459 if (aes_wrap(participant->kek.key, 16, in ieee802_1x_mka_encode_dist_sak_body()
1619 if (aes_unwrap(participant->kek.key, 16, sak_len >> 3, wrap_sak, in ieee802_1x_mka_decode_dist_sak_body()
3360 participant->kek.len = mka_alg_tbl[kay->mka_algindex].kek_len; in ieee802_1x_kay_create_mka()
3364 participant->kek.key)) { in ieee802_1x_kay_create_mka()
3369 participant->kek.key, participant->kek.len); in ieee802_1x_kay_create_mka()
3461 os_memset(&participant->kek, 0, sizeof(participant->kek)); in ieee802_1x_kay_delete_mka()
/NextBSD/contrib/wpa/src/common/
HDwpa_common.c197 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()
995 os_memcpy(ptk->kek, tmp + ptk->kck_len, ptk->kek_len); in wpa_pmk_r1_to_ptk()
999 wpa_hexdump_key(MSG_DEBUG, "FT: KEK", ptk->kek, ptk->kek_len); in wpa_pmk_r1_to_ptk()
HDwpa_common.h211 u8 kek[WPA_KEK_MAX_LEN]; /* EAPOL-Key Key Encryption Key (KEK) */ member
/NextBSD/gnu/usr.bin/grep/
HDTHANKS40 Kazuro Furukawa <furukawa@apricot.kek.jp>
/NextBSD/contrib/wpa/src/rsn_supp/
HDwpa_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()
HDwpa_i.h258 sm->ctx->set_rekey_offload(sm->ctx->ctx, sm->ptk.kek, sm->ptk.kek_len, in wpa_sm_set_rekey_offload()
HDwpa.c1360 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_process_1_of_2_wpa()
1385 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, maxkeylen / 8, in wpa_supplicant_process_1_of_2_wpa()
1591 os_memcpy(ek + 16, sm->ptk.kek, sm->ptk.kek_len); in wpa_supplicant_decrypt_key_data()
1618 if (aes_unwrap(sm->ptk.kek, sm->ptk.kek_len, *key_data_len / 8, in wpa_supplicant_decrypt_key_data()
2972 os_memcpy(sm->ptk.kek, ptk_kek, ptk_kek_len); in wpa_sm_set_ptk_kck_kek()
HDwpa.h76 void (*set_rekey_offload)(void *ctx, const u8 *kek, size_t kek_len,
/NextBSD/contrib/wpa/wpa_supplicant/
HDwpas_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()
HDdriver_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()
/NextBSD/contrib/wpa/src/ap/
HDwpa_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()
HDwpa_auth.c1531 if (aes_wrap(sm->PTK.kek, sm->PTK.kek_len, in __wpa_send_eapol()
1550 os_memcpy(ek + 16, sm->PTK.kek, sm->PTK.kek_len); in __wpa_send_eapol()
/NextBSD/contrib/wpa/src/drivers/
HDdriver.h2922 void (*set_rekey_info)(void *priv, const u8 *kek, size_t kek_len,