UNPKG

@hpke/core

Version:

A Hybrid Public Key Encryption (HPKE) core module for various JavaScript runtimes

10 lines 576 B
import type { KdfInterface } from "@hpke/common"; import type { AeadParams } from "./interfaces/aeadParams.js"; import type { Encapsulator } from "./interfaces/encapsulator.js"; import { EncryptionContextImpl } from "./encryptionContext.js"; export declare class SenderContextImpl extends EncryptionContextImpl implements Encapsulator { readonly enc: ArrayBuffer; constructor(api: SubtleCrypto, kdf: KdfInterface, params: AeadParams, enc: ArrayBuffer); seal(data: ArrayBuffer, aad?: ArrayBuffer): Promise<ArrayBuffer>; } //# sourceMappingURL=senderContext.d.ts.map