mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
|
export interface LibTextsecureCryptoInterface {
|
||
|
encryptAttachment(
|
||
|
plaintext: ArrayBuffer,
|
||
|
keys: ArrayBuffer,
|
||
|
iv: ArrayBuffer
|
||
|
): Promise<{
|
||
|
digest: ArrayBuffer;
|
||
|
ciphertext: ArrayBuffer;
|
||
|
}>;
|
||
|
decryptAttachment(
|
||
|
encryptedBin: ArrayBuffer,
|
||
|
keys: ArrayBuffer,
|
||
|
theirDigest: ArrayBuffer
|
||
|
): Promise<ArrayBuffer>;
|
||
|
decryptProfile(data: ArrayBuffer, key: ArrayBuffer): Promise<ArrayBuffer>;
|
||
|
}
|