Skip to main content
Module

x/jose/runtime/subtle_rsaes.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 { JOSENotSupported } from '../util/errors.ts'
export default function subtleRsaEs(alg: string) { switch (alg) { case 'RSA-OAEP': case 'RSA-OAEP-256': case 'RSA-OAEP-384': case 'RSA-OAEP-512': return 'RSA-OAEP' default: throw new JOSENotSupported( `alg ${alg} is not supported either by JOSE or your javascript runtime`, ) }}