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

x/hpke/core/mod.ts>ExportOnly

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

The ExportOnly mode for HPKE AEAD implementing AeadInterface.

When using @hpke/core, the instance of this class must be specified to the aead parameter of CipherSuiteParams instead of AeadId.ExportOnly as follows:

Examples

Example 1

import {
  CipherSuite,
  DhkemP256HkdfSha256,
  ExportOnly,
  HkdfSha256,
} from "http://deno.land/x/hpke/core/mod.ts";

const suite = new CipherSuite({
  kem: new DhkemP256HkdfSha256(),
  kdf: new HkdfSha256(),
  aead: new ExportOnly(),
});

Properties

readonly
id: AeadId
readonly
keySize: number
readonly
nonceSize: number
readonly
tagSize: number