Lines Matching refs:key
77 int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key)
111 * session key
113 memcpy(key, ses->smb3signingkey, SMB3_SIGN_KEY_SIZE);
120 * Otherwise, use the channel key.
126 memcpy(key, chan->signkey, SMB3_SIGN_KEY_SIZE);
136 "%s: Could not find channel signing key for session 0x%llx\n",
312 struct kvec context, __u8 *key, unsigned int key_size)
324 memset(key, 0x0, key_size);
335 cifs_server_dbg(VFS, "%s: Could not set with session key\n", __func__);
386 memcpy(key, hashptr, key_size);
430 * they have their own signing key.
434 * key and store it in the channel as to not overwrite the
435 * master connection signing key stored in the session
571 u8 key[SMB3_SIGN_KEY_SIZE];
573 rc = smb2_get_sign_key(le64_to_cpu(shdr->SessionId), server, key);
575 cifs_server_dbg(FYI, "%s: Could not get signing key\n", __func__);
590 rc = crypto_shash_setkey(shash->tfm, key, SMB2_CMACAES_SIZE);
592 cifs_server_dbg(VFS, "%s: Could not set key for cmac aes\n", __func__);
597 * we already allocate aes_cmac when we init smb3 signing key,