Home
last modified time | relevance | path

Searched refs:sec_key (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mcu.c2709 struct sec_key *sec_key; in mt76_connac_mcu_sta_key_tlv() local
2716 sec_key = &sec->key[0]; in mt76_connac_mcu_sta_key_tlv()
2717 sec_key->cipher_len = sizeof(*sec_key); in mt76_connac_mcu_sta_key_tlv()
2720 sec_key->cipher_id = MCU_CIPHER_AES_CCMP; in mt76_connac_mcu_sta_key_tlv()
2721 sec_key->key_id = sta_key_conf->keyidx; in mt76_connac_mcu_sta_key_tlv()
2722 sec_key->key_len = 16; in mt76_connac_mcu_sta_key_tlv()
2723 memcpy(sec_key->key, sta_key_conf->key, 16); in mt76_connac_mcu_sta_key_tlv()
2725 sec_key = &sec->key[1]; in mt76_connac_mcu_sta_key_tlv()
2726 sec_key->cipher_id = MCU_CIPHER_BIP_CMAC_128; in mt76_connac_mcu_sta_key_tlv()
2727 sec_key->cipher_len = sizeof(*sec_key); in mt76_connac_mcu_sta_key_tlv()
[all …]
Dmt76_connac_mcu.h418 struct sec_key { struct
433 struct sec_key key[2]; argument
/linux-6.6.21/fs/smb/client/
Dcifsencrypt.c815 unsigned char sec_key[CIFS_SESS_KEY_SIZE]; /* a nonce */ in calc_seckey() local
821 get_random_bytes(sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
830 cifs_arc4_crypt(ctx_arc4, ses->ntlmssp->ciphertext, sec_key, in calc_seckey()
834 memcpy(ses->auth_key.response, sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
838 memzero_explicit(sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7996/
Dmcu.c1867 struct sec_key_uni *sec_key; in mt7996_mcu_sta_key_tlv() local
1874 sec_key = &sec->key[0]; in mt7996_mcu_sta_key_tlv()
1875 sec_key->cipher_len = sizeof(*sec_key); in mt7996_mcu_sta_key_tlv()
1878 sec_key->wlan_idx = cpu_to_le16(wcid->idx); in mt7996_mcu_sta_key_tlv()
1879 sec_key->cipher_id = MCU_CIPHER_AES_CCMP; in mt7996_mcu_sta_key_tlv()
1880 sec_key->key_id = sta_key_conf->keyidx; in mt7996_mcu_sta_key_tlv()
1881 sec_key->key_len = 16; in mt7996_mcu_sta_key_tlv()
1882 memcpy(sec_key->key, sta_key_conf->key, 16); in mt7996_mcu_sta_key_tlv()
1884 sec_key = &sec->key[1]; in mt7996_mcu_sta_key_tlv()
1885 sec_key->wlan_idx = cpu_to_le16(wcid->idx); in mt7996_mcu_sta_key_tlv()
[all …]