From 11d13ae3d2cecd0473b92f1c31d2e9fa1f08a08f Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Fri, 7 Feb 2025 03:45:23 -0800 Subject: [PATCH] fix: each encrypted attachment should have its own salt value --- .../multi_remote_attachment.proto | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/proto/mls/message_contents/content_types/multi_remote_attachment.proto b/proto/mls/message_contents/content_types/multi_remote_attachment.proto index 870e09c..8ed73f9 100644 --- a/proto/mls/message_contents/content_types/multi_remote_attachment.proto +++ b/proto/mls/message_contents/content_types/multi_remote_attachment.proto @@ -20,17 +20,14 @@ message MultiRemoteAttachment { // A 32 byte array for decrypting the remote content payload bytes secret = 1; - // A byte array for the salt used to encrypt the remote content payload - bytes salt = 2; - // Array of attachment information - repeated RemoteAttachmentInfo attachments = 3; + repeated RemoteAttachmentInfo attachments = 2; // The number of attachments in the attachments array - optional uint32 num_attachments = 4; + optional uint32 num_attachments = 3; // The maximum content length of an attachment in the attachments array - optional uint32 max_attachment_content_length = 5; + optional uint32 max_attachment_content_length = 4; } message RemoteAttachmentInfo { @@ -39,13 +36,16 @@ message RemoteAttachmentInfo { // A byte array for the nonce used to encrypt the remote content payload bytes nonce = 2; + + // A byte array for the salt used to encrypt the remote content payload + bytes salt = 3; // The scheme of the URL. Must be "https://" - string scheme = 3; + string scheme = 4; // The URL of the remote content - string url = 4; + string url = 5; // The filename of the remote content - string filename = 5; + string filename = 6; } \ No newline at end of file