Skip to main content
Module

x/hpke/mod.ts>AeadEncryptionContext

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

The AEAD encryption context interface.

Methods

seal(
iv: ArrayBuffer,
data: ArrayBuffer,
aad: ArrayBuffer,
): Promise<ArrayBuffer>

Encrypts data with an initialization vector and additional authenticated data.

open(
iv: ArrayBuffer,
data: ArrayBuffer,
aad: ArrayBuffer,
): Promise<ArrayBuffer>

Decrypts data with an initialization vector and additional authenticated data.