You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
606 B
TypeScript
24 lines
606 B
TypeScript
5 years ago
|
import { SignalService } from '../../../ts/protobuf';
|
||
|
import {
|
||
|
BinaryString,
|
||
|
CipherTextObject,
|
||
|
} from '../../../libtextsecure/libsignal-protocol';
|
||
|
|
||
|
export declare class SecretSessionCipher {
|
||
|
constructor(storage: any);
|
||
|
encrypt(
|
||
|
destinationPubkey: string,
|
||
|
senderCertificate: SignalService.SenderCertificate,
|
||
|
innerEncryptedMessage: CipherTextObject
|
||
|
): Promise<ArrayBuffer>;
|
||
|
decrypt(
|
||
|
cipherText: ArrayBuffer,
|
||
|
me: { number: string; deviceId: number }
|
||
|
): Promise<{
|
||
|
isMe?: boolean;
|
||
|
sender: string;
|
||
|
content: ArrayBuffer;
|
||
|
type: SignalService.Envelope.Type;
|
||
|
}>;
|
||
|
}
|