@gaonengwww/jose
Version:
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
9 lines (7 loc) • 353 B
TypeScript
declare function wrap(alg: string, key: unknown, cek: Uint8Array, iv?: Uint8Array): Promise<{
encryptedKey: Uint8Array<ArrayBufferLike>;
iv: string;
tag: string;
}>;
declare function unwrap(alg: string, key: unknown, encryptedKey: Uint8Array, iv: Uint8Array, tag: Uint8Array): Promise<Uint8Array<ArrayBufferLike>>;
export { unwrap, wrap };