Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mcu.c2580 struct sec_key *sec_key; in mt76_connac_mcu_sta_key_tlv() local
2587 sec_key = &sec->key[0]; in mt76_connac_mcu_sta_key_tlv()
2588 sec_key->cipher_len = sizeof(*sec_key); in mt76_connac_mcu_sta_key_tlv()
2591 sec_key->cipher_id = MCU_CIPHER_AES_CCMP; in mt76_connac_mcu_sta_key_tlv()
2592 sec_key->key_id = sta_key_conf->keyidx; in mt76_connac_mcu_sta_key_tlv()
2593 sec_key->key_len = 16; in mt76_connac_mcu_sta_key_tlv()
2594 memcpy(sec_key->key, sta_key_conf->key, 16); in mt76_connac_mcu_sta_key_tlv()
2596 sec_key = &sec->key[1]; in mt76_connac_mcu_sta_key_tlv()
2597 sec_key->cipher_id = MCU_CIPHER_BIP_CMAC_128; in mt76_connac_mcu_sta_key_tlv()
2598 sec_key->cipher_len = sizeof(*sec_key); in mt76_connac_mcu_sta_key_tlv()
[all …]
Dmt76_connac_mcu.h404 struct sec_key { struct
419 struct sec_key key[2]; argument