Skip to main content
Module

x/hpke/x/hybridkem-x25519-kyber768/mod.ts>HybridkemX25519Kyber768

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
class HybridkemX25519Kyber768
extends Hybridkem
import { HybridkemX25519Kyber768 } from "https://deno.land/x/hpke@1.2.7/x/hybridkem-x25519-kyber768/mod.ts";

The Hybrid Post-Quantum KEM (X25519, Kyber768).

This class is implemented using pqc-kyber.

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

Examples

Example 1

import { Aes128Gcm, CipherSuite, HkdfSha256 } from "http://deno.land/x/hpke/core/mod.ts";
import { HybridkemX25519Kyber768 } from "https://deno.land/x/hpke/x/hybridkem-x25519-kyber768/mod.ts";
const suite = new CipherSuite({
  kem: new HybridkemX25519Kyber768(),
  kdf: new HkdfSha256(),
  aead: new Aes128Gcm(),
});

Constructors

new
HybridkemX25519Kyber768()

Properties

readonly
auth: boolean
readonly
encSize: number
readonly
id: KemId
readonly
name: string
readonly
privateKeySize: number
readonly
publicKeySize: number
readonly
secretSize: number