Home
last modified time | relevance | path

Searched refs:wk_key (Results 1 – 22 of 22) sorted by relevance

/freebsd/sys/net80211/
H A Dieee80211_crypto.h42 uint8_t wk_key[IEEE80211_KEYBUF_SIZE]; member
97 uint8_t wk_key[IEEE80211_KEYBUF_SIZE+IEEE80211_MICBUF_SIZE]; member
98 #define wk_txmic wk_key+IEEE80211_KEYBUF_SIZE+0 /* XXX can't () right */
99 #define wk_rxmic wk_key+IEEE80211_KEYBUF_SIZE+8 /* XXX can't () right */
H A Dieee80211_crypto_tkip.c1010 tkip_mixing_phase1(ctx->tx_ttak, key->wk_key, wh->i_addr2, in tkip_encrypt()
1013 tkip_mixing_phase2(ctx->tx_rc4key, key->wk_key, ctx->tx_ttak, in tkip_encrypt()
1044 tkip_mixing_phase1(ctx->rx_ttak, key->wk_key, in tkip_decrypt()
1048 tkip_mixing_phase2(ctx->rx_rc4key, key->wk_key, ctx->rx_ttak, iv16); in tkip_decrypt()
H A Dieee80211_crypto_wep.c363 memcpy(rc4key + IEEE80211_WEP_IVLEN, key->wk_key, key->wk_keylen); in wep_encrypt()
446 memcpy(rc4key + IEEE80211_WEP_IVLEN, key->wk_key, key->wk_keylen); in wep_decrypt()
H A Dieee80211_ioctl.c112 memcpy(ik.ik_keydata, wk->wk_key, wk->wk_keylen); in ieee80211_ioctl_getkey()
115 wk->wk_key + IEEE80211_KEYBUF_SIZE, in ieee80211_ioctl_getkey()
828 bcopy(vap->iv_nw_keys[kid].wk_key, tmpkey, len); in ieee80211_ioctl_get80211()
1230 memset(wk->wk_key, 0, sizeof(wk->wk_key)); in ieee80211_ioctl_setkey()
1231 memcpy(wk->wk_key, ik.ik_keydata, ik.ik_keylen); in ieee80211_ioctl_setkey()
2807 memcpy(k->wk_key, tmpkey, sizeof(tmpkey)); in ieee80211_ioctl_set80211()
H A Dieee80211_ddb.c953 if (memcmp(wk->wk_key, zerodata, keylen) != 0) { in _db_show_key()
958 db_printf("%02x", wk->wk_key[i]); in _db_show_key()
H A Dieee80211_crypto_ccmp.c135 rijndael_set_key(&ctx->cc_aes, k->wk_key, k->wk_keylen*NBBY); in ccmp_setkey()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_crypt.c99 if (wkey->wk_key.ck_data) { in dsl_wrapping_key_free()
100 memset(wkey->wk_key.ck_data, 0, in dsl_wrapping_key_free()
101 CRYPTO_BITS2BYTES(wkey->wk_key.ck_length)); in dsl_wrapping_key_free()
102 kmem_free(wkey->wk_key.ck_data, in dsl_wrapping_key_free()
103 CRYPTO_BITS2BYTES(wkey->wk_key.ck_length)); in dsl_wrapping_key_free()
120 wkey->wk_key.ck_data = kmem_alloc(WRAPPING_KEY_LEN, KM_SLEEP); in dsl_wrapping_key_create()
122 wkey->wk_key.ck_length = CRYPTO_BYTES2BITS(WRAPPING_KEY_LEN); in dsl_wrapping_key_create()
123 memcpy(wkey->wk_key.ck_data, wkeydata, WRAPPING_KEY_LEN); in dsl_wrapping_key_create()
615 ret = zio_crypt_key_unwrap(&wkey->wk_key, crypt, version, guid, in dsl_crypto_key_open()
1245 VERIFY0(zio_crypt_key_wrap(&dck->dck_wkey->wk_key, key, iv, mac, in dsl_crypto_key_sync()
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddsl_crypt.h62 crypto_key_t wk_key; member
/freebsd/tools/regression/net80211/wep/
H A Dtest_wep.c208 memcpy(key->wk_key, t->key, t->key_len); in runtest()
/freebsd/sys/dev/rtwn/
H A Dif_rtwn_cam.c227 le32dec(&k->wk_key[i * 4])); in rtwn_key_set_cb0()
/freebsd/tools/regression/net80211/ccmp/
H A Dtest_ccmp.c614 memcpy(key->wk_key, t->key, t->key_len); in runtest()
/freebsd/tools/regression/net80211/tkip/
H A Dtest_tkip.c203 memcpy(key->wk_key, t->key, t->key_len); in runtest()
/freebsd/sys/dev/ath/
H A Dif_ath_keycache.c214 memcpy(hk.kv_val, k->wk_key, k->wk_keylen); in ath_keyset()
/freebsd/sys/dev/usb/wlan/
H A Dif_run.c2410 if(run_write_region_1(sc, base, k->wk_key, 16)) in run_key_set_cb()
2412 if(run_write_region_1(sc, base + 16, &k->wk_key[16], 8)) /* wk_txmic */ in run_key_set_cb()
2414 if(run_write_region_1(sc, base + 24, &k->wk_key[24], 8)) /* wk_rxmic */ in run_key_set_cb()
2418 if(run_write_region_1(sc, base, k->wk_key, (k->wk_keylen + 1) & ~1)) in run_key_set_cb()
H A Dif_rsu.c1726 memcpy(key.key, k->wk_key, MIN(k->wk_keylen, sizeof(key.key))); in rsu_set_key_group()
1765 memcpy(key.key, k->wk_key, MIN(k->wk_keylen, sizeof(key.key))); in rsu_set_key_pair()
H A Dif_uath.c2110 crypto.key[i] = wk->wk_key[i] ^ 0xaa; in uath_set_key()
H A Dif_rum.c2863 if (rum_write_multi(sc, base, k->wk_key, k->wk_keylen)) in rum_common_key_set()
/freebsd/sys/dev/wpi/
H A Dif_wpi.c2920 memcpy(tx->key, k->wk_key, k->wk_keylen); in wpi_tx_data()
3034 memcpy(tx->key, k->wk_key, k->wk_keylen); in wpi_tx_data_raw()
4630 memcpy(node.key, k->wk_key, k->wk_keylen); in wpi_load_key()
/freebsd/sys/dev/ipw/
H A Dif_ipw.c2022 memcpy(wepkey.key, wk->wk_key, wk->wk_keylen); in ipw_setwepkeys()
/freebsd/sys/dev/iwi/
H A Dif_iwi.c2535 memcpy(wepkey.key, wk->wk_key, wk->wk_keylen); in iwi_setwepkeys()
/freebsd/sys/dev/mwl/
H A Dif_mwl.c1672 memcpy(hk.key.aes, k->wk_key, hk.keyLen); in _mwl_key_set()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_80211.c743 memcpy(kc->key, k->wk_key, k->wk_keylen); in _lkpi_iv_key_set_delete()