import { CipherSuiteNative } from "https://deno.land/x/hpke@1.2.9/src/cipherSuiteNative.ts";
Encrypts a message to a recipient.
If the error occurred, throws EncapError
| MessageLimitReachedError
| SealError
| ValidationError
.
Parameters
params: SenderContextParams
A set of parameters for building a sender encryption context.
Returns
Promise<CipherSuiteSealResponse>
A cipher text and an encapsulated key as bytes.