Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hpke/src/cipherSuiteNative.ts>CipherSuiteNative#createSenderContext

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
method CipherSuiteNative.prototype.createSenderContext
import { CipherSuiteNative } from "https://deno.land/x/hpke@1.2.9/src/cipherSuiteNative.ts";

Creates an encryption context for a sender.

If the error occurred, throws DecapError | ValidationError.

Parameters

A set of parameters for the sender encryption context.

Returns

Promise<SenderContext>

A sender encryption context.