tr_hdr 3550 fs/cifs/smb2ops.c fill_transform_hdr(struct smb2_transform_hdr *tr_hdr, unsigned int orig_len, tr_hdr 3556 fs/cifs/smb2ops.c memset(tr_hdr, 0, sizeof(struct smb2_transform_hdr)); tr_hdr 3557 fs/cifs/smb2ops.c tr_hdr->ProtocolId = SMB2_TRANSFORM_PROTO_NUM; tr_hdr 3558 fs/cifs/smb2ops.c tr_hdr->OriginalMessageSize = cpu_to_le32(orig_len); tr_hdr 3559 fs/cifs/smb2ops.c tr_hdr->Flags = cpu_to_le16(0x01); tr_hdr 3561 fs/cifs/smb2ops.c get_random_bytes(&tr_hdr->Nonce, SMB3_AES128GCM_NONCE); tr_hdr 3563 fs/cifs/smb2ops.c get_random_bytes(&tr_hdr->Nonce, SMB3_AES128CCM_NONCE); tr_hdr 3564 fs/cifs/smb2ops.c memcpy(&tr_hdr->SessionId, &shdr->SessionId, 8); tr_hdr 3663 fs/cifs/smb2ops.c struct smb2_transform_hdr *tr_hdr = tr_hdr 3675 fs/cifs/smb2ops.c unsigned int crypt_len = le32_to_cpu(tr_hdr->OriginalMessageSize); tr_hdr 3677 fs/cifs/smb2ops.c rc = smb2_get_enc_key(server, tr_hdr->SessionId, enc, key); tr_hdr 3711 fs/cifs/smb2ops.c memcpy(sign, &tr_hdr->Signature, SMB2_SIGNATURE_SIZE); tr_hdr 3731 fs/cifs/smb2ops.c memcpy(iv, (char *)tr_hdr->Nonce, SMB3_AES128GCM_NONCE); tr_hdr 3734 fs/cifs/smb2ops.c memcpy(iv + 1, (char *)tr_hdr->Nonce, SMB3_AES128CCM_NONCE); tr_hdr 3747 fs/cifs/smb2ops.c memcpy(&tr_hdr->Signature, sign, SMB2_SIGNATURE_SIZE); tr_hdr 3789 fs/cifs/smb2ops.c struct smb2_transform_hdr *tr_hdr = new_rq[0].rq_iov[0].iov_base; tr_hdr 3835 fs/cifs/smb2ops.c fill_transform_hdr(tr_hdr, orig_len, old_rq, server->cipher_type); tr_hdr 4134 fs/cifs/smb2ops.c struct smb2_transform_hdr *tr_hdr = (struct smb2_transform_hdr *)buf; tr_hdr 4152 fs/cifs/smb2ops.c len = le32_to_cpu(tr_hdr->OriginalMessageSize) - tr_hdr 4330 fs/cifs/smb2ops.c struct smb2_transform_hdr *tr_hdr = (struct smb2_transform_hdr *)buf; tr_hdr 4331 fs/cifs/smb2ops.c unsigned int orig_len = le32_to_cpu(tr_hdr->OriginalMessageSize); tr_hdr 469 fs/cifs/transport.c struct smb2_transform_hdr *tr_hdr; tr_hdr 485 fs/cifs/transport.c tr_hdr = kmalloc(sizeof(*tr_hdr), GFP_NOFS); tr_hdr 486 fs/cifs/transport.c if (!tr_hdr) tr_hdr 491 fs/cifs/transport.c memset(tr_hdr, 0, sizeof(*tr_hdr)); tr_hdr 493 fs/cifs/transport.c iov.iov_base = tr_hdr; tr_hdr 494 fs/cifs/transport.c iov.iov_len = sizeof(*tr_hdr); tr_hdr 506 fs/cifs/transport.c kfree(tr_hdr);