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

x/hpke/mod.ts>SenderContextParams

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
interface SenderContextParams
implements KeyScheduleParams
import { type SenderContextParams } from "https://deno.land/x/hpke@1.2.9/mod.ts";

The parameters used to setup the SenderContext.

Properties

recipientPublicKey: CryptoKey

A recipient public key.

optional
senderKey: CryptoKey | CryptoKeyPair

A sender private key or a key pair for Auth mode.

optional
ekm: CryptoKeyPair | ArrayBuffer

DO NOT USE. FOR DEBUGGING/TESTING PURPOSES ONLY.