@hpke/core
Version:
A Hybrid Public Key Encryption (HPKE) core module for various JavaScript runtimes
17 lines • 576 B
TypeScript
/**
* The exporter interface.
*/
export interface Exporter {
/**
* Exports a secret using a variable-length pseudorandom function.
*
* If the error occurred, throws `ExportError`.
*
* @param exporterContext An exporter context string as bytes. The maximum length is 128 bytes.
* @param len A desired length in bytes of the output secret.
* @returns A secret string as bytes.
* @throws {@link ExportError}
*/
export(exporterContext: ArrayBuffer, len: number): Promise<ArrayBuffer>;
}
//# sourceMappingURL=exporter.d.ts.map