Store IV when encrypting or decrypting attachments
This commit is contained in:
parent
63be4299f4
commit
e9b661873b
6 changed files with 136 additions and 11 deletions
|
@ -74,6 +74,7 @@ export type AttachmentType = {
|
|||
cdnId?: string;
|
||||
cdnKey?: string;
|
||||
key?: string;
|
||||
iv?: string;
|
||||
data?: Uint8Array;
|
||||
textAttachment?: TextAttachmentType;
|
||||
wasTooBig?: boolean;
|
||||
|
@ -97,6 +98,7 @@ export type UploadedAttachmentType = Proto.IAttachmentPointer &
|
|||
Readonly<{
|
||||
// Required fields
|
||||
cdnKey: string;
|
||||
iv: Uint8Array;
|
||||
key: Uint8Array;
|
||||
size: number;
|
||||
digest: Uint8Array;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue