Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hpke/core/mod.ts

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
import * as hpke from "https://deno.land/x/hpke@1.2.9/core/mod.ts";

Classes

The AES-128-GCM for HPKE AEAD implementing AeadInterface.

The AES-256-GCM for HPKE AEAD implementing AeadInterface.

The base error class of hpke-js.

The Hybrid Public Key Encryption (HPKE) ciphersuite, which is implemented using only Web Cryptography API.

decap() failure.

Key pair derivation failure.

Public or private key deserialization failure.

The DHKEM(P-256, HKDF-SHA256) for HPKE KEM implementing KemInterface.

The DHKEM(P-384, HKDF-SHA384) for HPKE KEM implementing KemInterface.

The DHKEM(P-521, HKDF-SHA512) for HPKE KEM implementing KemInterface.

encap() failure.

Secret export failure.

The ExportOnly mode for HPKE AEAD implementing AeadInterface.

The HKDF-SHA256 for HPKE KDF implementing KdfInterface.

The HKDF-SHA384 for HPKE KDF implementing KdfInterface.

The HKDF-SHA512 for HPKE KDF implementing KdfInterface.

The base error class of hpke-js.

Invalid parameter.

Sequence number overflow on the encryption context.

Not supported failure.

open() failure.

seal() failure.

Public or private key serialization failure.

KEM input or output validation failure.

Variables

The supported Authenticated Encryption with Associated Data (AEAD) identifiers.

The supported Key Derivation Function (KDF) identifiers.

The supported Key Encapsulation Mechanism (KEM) identifiers.

Interfaces

The AEAD encryption context interface.

The AEAD interface.

The parameters used to configure the CipherSuite.

The response of the single-shot seal API.

The encryption context interface for a recipient and a sender.

The KDF interface.

The KEM interface.

The pre-shared key interface.

The parameters used to setup the RecipientContext.

The sender encryption context.

The parameters used to setup the SenderContext.

Type Aliases

The type alias of the supported AEAD identifiers.

The type alias of the supported KDF identifiers.

The type alias of the supported KEM identifiers.

The recipient encryption context.