session-desktop/libtextsecure/crypto.d.ts

17 lines
425 B
TypeScript
Raw Normal View History

2020-07-03 02:08:24 +02:00
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>;
}