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

x/hpke/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/mod.ts";

Classes

The base error class of hpke-js.

The Hybrid Public Key Encryption (HPKE) ciphersuite, which supports all of the ciphersuites defined in RFC9180.

decap() failure.

Key pair derivation failure.

Public or private key deserialization failure.

encap() failure.

Secret export failure.

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

v
Aead
deprecated

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

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

v
Kdf
deprecated

The supported Key Derivation Function (KDF) identifiers.

The supported Key Derivation Function (KDF) identifiers.

v
Kem
deprecated

The supported Key Encapsulation Mechanism (KEM) 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

T
Aead
deprecated

The type alias of the supported AEAD identifiers.

The type alias of the supported AEAD identifiers.

T
Kdf
deprecated

The type alias of the supported KDF identifiers.

The type alias of the supported KDF identifiers.

T
Kem
deprecated

The type alias of the supported KEM identifiers.

The type alias of the supported KEM identifiers.

The recipient encryption context.