Lines Matching defs: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",
310 struct kvec context, __u8 *key, unsigned int key_size)
322 memset(key, 0x0, key_size);
333 cifs_server_dbg(VFS, "%s: Could not set with session key\n", __func__);
384 memcpy(key, hashptr, key_size);
428 * they have their own signing key.
432 * key and store it in the channel as to not overwrite the
433 * master connection signing key stored in the session
569 u8 key[SMB3_SIGN_KEY_SIZE];
571 rc = smb2_get_sign_key(le64_to_cpu(shdr->SessionId), server, key);
573 cifs_server_dbg(FYI, "%s: Could not get signing key\n", __func__);
588 rc = crypto_shash_setkey(shash->tfm, key, SMB2_CMACAES_SIZE);
590 cifs_server_dbg(VFS, "%s: Could not set key for cmac aes\n", __func__);
595 * we already allocate aes_cmac when we init smb3 signing key,