Searched refs:tr_hdr (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/fs/ksmbd/ |
D | auth.c | 1092 struct smb2_transform_hdr *tr_hdr = smb2_get_msg(iov[0].iov_base); in ksmbd_crypt_message() local 1102 unsigned int crypt_len = le32_to_cpu(tr_hdr->OriginalMessageSize); in ksmbd_crypt_message() 1106 le64_to_cpu(tr_hdr->SessionId), in ksmbd_crypt_message() 1153 memcpy(sign, &tr_hdr->Signature, SMB2_SIGNATURE_SIZE); in ksmbd_crypt_message() 1173 memcpy(iv, (char *)tr_hdr->Nonce, SMB3_AES_GCM_NONCE); in ksmbd_crypt_message() 1176 memcpy(iv + 1, (char *)tr_hdr->Nonce, SMB3_AES_CCM_NONCE); in ksmbd_crypt_message() 1191 memcpy(&tr_hdr->Signature, sign, SMB2_SIGNATURE_SIZE); in ksmbd_crypt_message()
|
D | smb2pdu.c | 8547 struct smb2_transform_hdr *tr_hdr = tr_buf + 4; in fill_transform_hdr() local 8552 tr_hdr->ProtocolId = SMB2_TRANSFORM_PROTO_NUM; in fill_transform_hdr() 8553 tr_hdr->OriginalMessageSize = cpu_to_le32(orig_len); in fill_transform_hdr() 8554 tr_hdr->Flags = cpu_to_le16(TRANSFORM_FLAG_ENCRYPTED); in fill_transform_hdr() 8557 get_random_bytes(&tr_hdr->Nonce, SMB3_AES_GCM_NONCE); in fill_transform_hdr() 8559 get_random_bytes(&tr_hdr->Nonce, SMB3_AES_CCM_NONCE); in fill_transform_hdr() 8560 memcpy(&tr_hdr->SessionId, &hdr->SessionId, 8); in fill_transform_hdr() 8622 struct smb2_transform_hdr *tr_hdr = smb2_get_msg(buf); in smb3_decrypt_req() local 8631 if (buf_data_size < le32_to_cpu(tr_hdr->OriginalMessageSize)) { in smb3_decrypt_req() 8636 sess = ksmbd_session_lookup_all(work->conn, le64_to_cpu(tr_hdr->SessionId)); in smb3_decrypt_req() [all …]
|
/linux-6.1.9/fs/cifs/ |
D | transport.c | 446 struct smb2_transform_hdr *tr_hdr; in smb_send_rqst() local 461 tr_hdr = kzalloc(sizeof(*tr_hdr), GFP_NOFS); in smb_send_rqst() 462 if (!tr_hdr) in smb_send_rqst() 468 iov.iov_base = tr_hdr; in smb_send_rqst() 469 iov.iov_len = sizeof(*tr_hdr); in smb_send_rqst() 481 kfree(tr_hdr); in smb_send_rqst()
|
D | smb2ops.c | 4210 fill_transform_hdr(struct smb2_transform_hdr *tr_hdr, unsigned int orig_len, in fill_transform_hdr() argument 4216 memset(tr_hdr, 0, sizeof(struct smb2_transform_hdr)); in fill_transform_hdr() 4217 tr_hdr->ProtocolId = SMB2_TRANSFORM_PROTO_NUM; in fill_transform_hdr() 4218 tr_hdr->OriginalMessageSize = cpu_to_le32(orig_len); in fill_transform_hdr() 4219 tr_hdr->Flags = cpu_to_le16(0x01); in fill_transform_hdr() 4222 get_random_bytes(&tr_hdr->Nonce, SMB3_AES_GCM_NONCE); in fill_transform_hdr() 4224 get_random_bytes(&tr_hdr->Nonce, SMB3_AES_CCM_NONCE); in fill_transform_hdr() 4225 memcpy(&tr_hdr->SessionId, &shdr->SessionId, 8); in fill_transform_hdr() 4343 struct smb2_transform_hdr *tr_hdr = in crypt_message() local 4354 unsigned int crypt_len = le32_to_cpu(tr_hdr->OriginalMessageSize); in crypt_message() [all …]
|