/freebsd/sys/net80211/ |
H A D | ieee80211_crypto.h | 42 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 D | ieee80211_crypto_tkip.c | 1010 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 D | ieee80211_crypto_wep.c | 363 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 D | ieee80211_ioctl.c | 112 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 D | ieee80211_ddb.c | 953 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 D | ieee80211_crypto_ccmp.c | 135 rijndael_set_key(&ctx->cc_aes, k->wk_key, k->wk_keylen*NBBY); in ccmp_setkey()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_crypt.c | 99 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 D | dsl_crypt.h | 62 crypto_key_t wk_key; member
|
/freebsd/tools/regression/net80211/wep/ |
H A D | test_wep.c | 208 memcpy(key->wk_key, t->key, t->key_len); in runtest()
|
/freebsd/sys/dev/rtwn/ |
H A D | if_rtwn_cam.c | 227 le32dec(&k->wk_key[i * 4])); in rtwn_key_set_cb0()
|
/freebsd/tools/regression/net80211/ccmp/ |
H A D | test_ccmp.c | 614 memcpy(key->wk_key, t->key, t->key_len); in runtest()
|
/freebsd/tools/regression/net80211/tkip/ |
H A D | test_tkip.c | 203 memcpy(key->wk_key, t->key, t->key_len); in runtest()
|
/freebsd/sys/dev/ath/ |
H A D | if_ath_keycache.c | 214 memcpy(hk.kv_val, k->wk_key, k->wk_keylen); in ath_keyset()
|
/freebsd/sys/dev/usb/wlan/ |
H A D | if_run.c | 2410 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 D | if_rsu.c | 1726 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 D | if_uath.c | 2110 crypto.key[i] = wk->wk_key[i] ^ 0xaa; in uath_set_key()
|
H A D | if_rum.c | 2863 if (rum_write_multi(sc, base, k->wk_key, k->wk_keylen)) in rum_common_key_set()
|
/freebsd/sys/dev/wpi/ |
H A D | if_wpi.c | 2920 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 D | if_ipw.c | 2022 memcpy(wepkey.key, wk->wk_key, wk->wk_keylen); in ipw_setwepkeys()
|
/freebsd/sys/dev/iwi/ |
H A D | if_iwi.c | 2535 memcpy(wepkey.key, wk->wk_key, wk->wk_keylen); in iwi_setwepkeys()
|
/freebsd/sys/dev/mwl/ |
H A D | if_mwl.c | 1672 memcpy(hk.key.aes, k->wk_key, hk.keyLen); in _mwl_key_set()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_80211.c | 743 memcpy(kc->key, k->wk_key, k->wk_keylen); in _lkpi_iv_key_set_delete()
|