Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hpke/src/interfaces/aeadInterface.ts>AeadInterface

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
interface AeadInterface
import { type AeadInterface } from "https://deno.land/x/hpke@1.2.9/src/interfaces/aeadInterface.ts";

The AEAD interface.

Properties

readonly
id: AeadId

The KDF identifier.

readonly
keySize: number

The length in bytes of an AEAD key (Nk).

readonly
nonceSize: number

The length in bytes of an AEAD nonce (Nn).

readonly
tagSize: number

The length in bytes of an AEAD authentication tag (Nt).

Methods

createEncryptionContext(key: ArrayBuffer): AeadEncryptionContext

Creates an AEAD encryption context which has seal/open operation.