UNPKG

@gaonengwww/jose

Version:

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes

7 lines (4 loc) 295 B
import { CryptoKey } from '../types.d.js'; declare function encrypt(alg: string, key: CryptoKey, cek: Uint8Array): Promise<Uint8Array<ArrayBuffer>>; declare function decrypt(alg: string, key: CryptoKey, encryptedKey: Uint8Array): Promise<Uint8Array<ArrayBuffer>>; export { decrypt, encrypt };