Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface jose.DecryptOptions
implements CritOption
import { type jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { DecryptOptions } = jose;

JWE Decryption options.

Properties

optional
keyManagementAlgorithms: string[]

A list of accepted JWE "alg" (Algorithm) Header Parameter values.

optional
contentEncryptionAlgorithms: string[]

A list of accepted JWE "enc" (Encryption Algorithm) Header Parameter values. By default all "enc" (Encryption Algorithm) values applicable for the used key/secret are allowed.

optional
inflateRaw: InflateFunction

In a browser runtime you have to provide an implementation for Inflate Raw when you expect JWEs with compressed plaintext.

optional
maxPBES2Count: number

(PBES2 Key Management Algorithms only) Maximum allowed "p2c" (PBES2 Count) Header Parameter value. The PBKDF2 iteration count defines the algorithm's computational expense. By default this value is set to 10000.