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.
12 lines
388 B
TypeScript
12 lines
388 B
TypeScript
import { CipherTextObject } from '../../../../../libtextsecure/libsignal-protocol';
|
|
import { SignalService } from '../../../../protobuf';
|
|
|
|
export class FallBackSessionCipherStub {
|
|
public async encrypt(buffer: ArrayBuffer): Promise<CipherTextObject> {
|
|
return {
|
|
type: SignalService.Envelope.Type.SESSION_REQUEST,
|
|
body: Buffer.from(buffer).toString('binary'),
|
|
};
|
|
}
|
|
}
|