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

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

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

Creates an encryption context for a recipient.

If the error occurred, throws DecapError | DeserializeError | ValidationError.

Parameters

A set of parameters for the recipient encryption context.

Returns

A recipient encryption context.