Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hpke/src/aeads/aesGcm.ts>AesGcmContext

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
class AesGcmContext
import { AesGcmContext } from "https://deno.land/x/hpke@1.2.7/src/aeads/aesGcm.ts";

Constructors

new
AesGcmContext(key: ArrayBuffer)

Properties

private
_key: CryptoKey | undefined
private
_rawKey: ArrayBuffer

Methods

private
_importKey(key: ArrayBuffer): Promise<CryptoKey>
protected
_setupKey()
open(
iv: ArrayBuffer,
data: ArrayBuffer,
aad: ArrayBuffer,
): Promise<ArrayBuffer>
seal(
iv: ArrayBuffer,
data: ArrayBuffer,
aad: ArrayBuffer,
): Promise<ArrayBuffer>