Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7921/
Dmcu.c618 struct sec_key *sec_key; in mt7921_mcu_sta_key_tlv() local
625 sec_key = &sec->key[0]; in mt7921_mcu_sta_key_tlv()
626 sec_key->cipher_len = sizeof(*sec_key); in mt7921_mcu_sta_key_tlv()
629 sec_key->cipher_id = MCU_CIPHER_AES_CCMP; in mt7921_mcu_sta_key_tlv()
630 sec_key->key_id = bip->keyidx; in mt7921_mcu_sta_key_tlv()
631 sec_key->key_len = 16; in mt7921_mcu_sta_key_tlv()
632 memcpy(sec_key->key, bip->key, 16); in mt7921_mcu_sta_key_tlv()
634 sec_key = &sec->key[1]; in mt7921_mcu_sta_key_tlv()
635 sec_key->cipher_id = MCU_CIPHER_BIP_CMAC_128; in mt7921_mcu_sta_key_tlv()
636 sec_key->cipher_len = sizeof(*sec_key); in mt7921_mcu_sta_key_tlv()
[all …]
Dmcu.h183 struct sec_key { struct
198 struct sec_key key[2]; argument
/Linux-v5.15/fs/cifs/
Dcifsencrypt.c687 unsigned char sec_key[CIFS_SESS_KEY_SIZE]; /* a nonce */ in calc_seckey() local
693 get_random_bytes(sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
702 cifs_arc4_crypt(ctx_arc4, ses->ntlmssp->ciphertext, sec_key, in calc_seckey()
706 memcpy(ses->auth_key.response, sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
710 memzero_explicit(sec_key, CIFS_SESS_KEY_SIZE); in calc_seckey()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7915/
Dmcu.c1200 struct sec_key *sec_key; in mt7915_mcu_sta_key_tlv() local
1207 sec_key = &sec->key[0]; in mt7915_mcu_sta_key_tlv()
1208 sec_key->cipher_len = sizeof(*sec_key); in mt7915_mcu_sta_key_tlv()
1211 sec_key->cipher_id = MCU_CIPHER_AES_CCMP; in mt7915_mcu_sta_key_tlv()
1212 sec_key->key_id = bip->keyidx; in mt7915_mcu_sta_key_tlv()
1213 sec_key->key_len = 16; in mt7915_mcu_sta_key_tlv()
1214 memcpy(sec_key->key, bip->key, 16); in mt7915_mcu_sta_key_tlv()
1216 sec_key = &sec->key[1]; in mt7915_mcu_sta_key_tlv()
1217 sec_key->cipher_id = MCU_CIPHER_BIP_CMAC_128; in mt7915_mcu_sta_key_tlv()
1218 sec_key->cipher_len = sizeof(*sec_key); in mt7915_mcu_sta_key_tlv()
[all …]
Dmcu.h900 struct sec_key { struct
915 struct sec_key key[2]; argument