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

@ -77,7 +77,7 @@ export const downscaleOutgoingAttachment = async (
export type CdnFieldsType = Pick<
AttachmentType,
'cdnId' | 'cdnKey' | 'cdnNumber' | 'key' | 'digest' | 'iv' | 'plaintextHash'
'cdnId' | 'cdnKey' | 'cdnNumber' | 'key' | 'digest' | 'plaintextHash'
>;
export function copyCdnFields(
@ -91,7 +91,6 @@ export function copyCdnFields(
cdnKey: uploaded.cdnKey,
cdnNumber: dropNull(uploaded.cdnNumber),
key: Bytes.toBase64(uploaded.key),
iv: Bytes.toBase64(uploaded.iv),
digest: Bytes.toBase64(uploaded.digest),
plaintextHash: uploaded.plaintextHash,
};