@hpke/common
Version:
A Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.
23 lines • 810 B
TypeScript
import type { AeadEncryptionContext } from "./aeadEncryptionContext.js";
import type { AeadId } from "../identifiers.js";
/**
* The AEAD interface.
*/
export interface AeadInterface {
/** The KDF identifier. */
readonly id: AeadId;
/** The length in bytes of an AEAD key (Nk). */
readonly keySize: number;
/** The length in bytes of an AEAD nonce (Nn). */
readonly nonceSize: number;
/** The length in bytes of an AEAD authentication tag (Nt). */
readonly tagSize: number;
/**
* Creates an AEAD encryption context which has seal/open operation.
*
* @param key A byte string of the raw key.
* @returns An AEAD encryption context.
*/
createEncryptionContext(key: ArrayBuffer): AeadEncryptionContext;
}
//# sourceMappingURL=aeadInterface.d.ts.map