UNPKG

@sebastianp265/safe-server-side-storage-client

Version:

Library for Confidential Server-Side Message Storage Using the Labyrinth Protocol

4 lines 546 B
import { PrivateKey, PublicKey } from "./keys"; export declare function labyrinth_hpke_encrypt(recipient_enc_pub: PublicKey, sender_auth_pub: PublicKey, sender_auth_priv: PrivateKey, psk: Uint8Array, aad: Uint8Array, plaintext: Uint8Array): Uint8Array<ArrayBufferLike>; export declare function labyrinth_hpke_decrypt(recipient_enc_pub: PublicKey, recipient_enc_priv: PrivateKey, sender_auth_pub: PublicKey, psk: Uint8Array, aad: Uint8Array, ciphertext: Uint8Array): Uint8Array<ArrayBufferLike>; //# sourceMappingURL=public-key-encryption.d.ts.map