@wireapp/cryptobox
Version:
High-level API with persistent storage for Proteus.
12 lines (11 loc) • 503 B
TypeScript
import type { CryptoboxCRUDStore } from './store/';
import { session as ProteusSession } from '@wireapp/proteus';
export declare class CryptoboxSession {
readonly id: string;
readonly session: ProteusSession.Session;
constructor(id: string, session: ProteusSession.Session);
decrypt(ciphertext: ArrayBuffer, pk_store: CryptoboxCRUDStore): Promise<Uint8Array>;
encrypt(plaintext: string | Uint8Array): ArrayBuffer;
fingerprint_local(): string;
fingerprint_remote(): string;
}