@sebastianp265/safe-server-side-storage-client
Version:
Library for Confidential Server-Side Message Storage Using the Labyrinth Protocol
5 lines • 496 B
TypeScript
export declare const NONCE_LENGTH = 12;
export declare function encryptWithRandomNonce(key: Uint8Array, aad: Uint8Array, plaintext: Uint8Array): Uint8Array<ArrayBufferLike>;
export declare function encrypt(key: Uint8Array, nonce: Uint8Array, aad: Uint8Array, plaintext: Uint8Array): Uint8Array<ArrayBufferLike>;
export declare function decrypt(key: Uint8Array, aad: Uint8Array, ciphertext: Uint8Array): Uint8Array<ArrayBufferLike>;
//# sourceMappingURL=authenticated-symmetric-encryption.d.ts.map