Skip to main content
Module

x/jose/lib/check_p2s.ts

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
File
import { JWEInvalid } from '../util/errors.ts'
export default function checkP2s(p2s: Uint8Array) { if (!(p2s instanceof Uint8Array) || p2s.length < 8) { throw new JWEInvalid('PBES2 Salt Input must be 8 or more octets') }}