Revert "Store IV when encrypting or decrypting attachments"

This commit is contained in:
trevor-signal 2024-05-22 14:18:38 -04:00 committed by GitHub
parent 9df3c63ca6
commit 7351a51ac4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 11 additions and 136 deletions

View file

@ -132,7 +132,7 @@ export async function downloadAttachment(
window.Signal.Migrations.getAbsoluteAttachmentPath(downloadedPath);
const { aesKey, macKey } = splitKeys(Bytes.fromBase64(key));
const { path, plaintextHash, iv } = await decryptAttachmentV2({
const { path, plaintextHash } = await decryptAttachmentV2({
ciphertextPath: cipherTextAbsolutePath,
idForLogging: logId,
aesKey,
@ -155,7 +155,6 @@ export async function downloadAttachment(
? MIME.stringToMIMEType(contentType)
: MIME.APPLICATION_OCTET_STREAM,
plaintextHash,
iv: Bytes.toBase64(iv),
};
}