Home
last modified time | relevance | path

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

/linux/fs/smb/client/
H A Dcifsencrypt.c669 unsigned char sec_key[CIFS_SESS_KEY_SIZE]; /* a nonce */ in calc_seckey() local
675 get_random_bytes(sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
684 cifs_arc4_crypt(ctx_arc4, ses->ntlmssp->ciphertext, sec_key, in calc_seckey()
688 memcpy(ses->auth_key.response, sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
692 memzero_explicit(sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mcu.c2632 struct sec_key *sec_key; in mt76_connac_mcu_sta_key_tlv() local
2639 sec_key = &sec->key[0]; in mt76_connac_mcu_sta_key_tlv()
2640 sec_key->cipher_len = sizeof(*sec_key); in mt76_connac_mcu_sta_key_tlv()
2643 sec_key->cipher_id = MCU_CIPHER_AES_CCMP; in mt76_connac_mcu_sta_key_tlv()
2644 sec_key->key_id = sta_key_conf->keyidx; in mt76_connac_mcu_sta_key_tlv()
2645 sec_key->key_len = 16; in mt76_connac_mcu_sta_key_tlv()
2646 memcpy(sec_key->key, sta_key_conf->key, 16); in mt76_connac_mcu_sta_key_tlv()
2648 sec_key = &sec->key[1]; in mt76_connac_mcu_sta_key_tlv()
2649 sec_key->cipher_id = MCU_CIPHER_BIP_CMAC_128; in mt76_connac_mcu_sta_key_tlv()
2650 sec_key->cipher_len = sizeof(*sec_key); in mt76_connac_mcu_sta_key_tlv()
[all …]
H A Dmt76_connac_mcu.h432 struct sec_key { struct
447 struct sec_key key[2]; argument
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.c2241 struct sec_key_uni *sec_key; in mt7996_mcu_sta_key_tlv() local
2248 sec_key = &sec->key[0]; in mt7996_mcu_sta_key_tlv()
2249 sec_key->wlan_idx = cpu_to_le16(wcid->idx); in mt7996_mcu_sta_key_tlv()
2250 sec_key->mgmt_prot = 0; in mt7996_mcu_sta_key_tlv()
2251 sec_key->cipher_id = cipher; in mt7996_mcu_sta_key_tlv()
2252 sec_key->cipher_len = sizeof(*sec_key); in mt7996_mcu_sta_key_tlv()
2253 sec_key->key_id = key->keyidx; in mt7996_mcu_sta_key_tlv()
2254 sec_key->key_len = key->keylen; in mt7996_mcu_sta_key_tlv()
2255 sec_key->need_resp = 0; in mt7996_mcu_sta_key_tlv()
2256 memcpy(sec_key->key, key->key, key->keylen); in mt7996_mcu_sta_key_tlv()
[all …]