Skip to main content
Home

Built and signed on GitHub Actions

A Hybrid Public Key Encryption (HPKE) module extension for X448.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
3 months ago (1.6.4)
class DhkemX448HkdfSha512
extends Dhkem

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

This class is implemented using @noble/curves.

The instance of this class can be specified to the CipherSuiteParams as follows:

Examples

Use with @hpke/core:

import {
  Aes256Gcm,
  CipherSuite,
  HkdfSha512,
} from "@hpke/core";
import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";

const suite = new CipherSuite({
  kem: new DhkemX448HkdfSha512(),
  kdf: new HkdfSha512(),
  aead: new Aes256Gcm(),
});

Constructors

new
DhkemX448HkdfSha512()

Properties

id: KemId

KemId.DhkemX448HkdfSha512 (0x0021)

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@hpke/dhkem-x448

Import symbol

import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";
or

Import directly with a jsr specifier

import { DhkemX448HkdfSha512 } from "jsr:@hpke/dhkem-x448";

Add Package

pnpm i jsr:@hpke/dhkem-x448
or (using pnpm 10.8 or older)
pnpm dlx jsr add @hpke/dhkem-x448

Import symbol

import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";

Add Package

yarn add jsr:@hpke/dhkem-x448
or (using Yarn 4.8 or older)
yarn dlx jsr add @hpke/dhkem-x448

Import symbol

import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";

Add Package

vlt install jsr:@hpke/dhkem-x448

Import symbol

import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";

Add Package

npx jsr add @hpke/dhkem-x448

Import symbol

import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";

Add Package

bunx jsr add @hpke/dhkem-x448

Import symbol

import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";