UNPKG

lib0

Version:

> Monorepo of isomorphic utility functions

17 lines 849 B
export function encrypt(key: CryptoKey, data: Uint8Array): Promise<Uint8Array>; export function decrypt(key: CryptoKey, data: Uint8Array): PromiseLike<Uint8Array>; export function importKeyJwk(jwk: any, { usages, extractable }?: { usages?: Usages | undefined; extractable?: boolean | undefined; }): Promise<CryptoKey>; export function importKeyRaw(raw: Uint8Array, { usages, extractable }?: { usages?: Usages | undefined; extractable?: boolean | undefined; }): Promise<CryptoKey>; export function deriveKey(secret: Uint8Array | string, salt: Uint8Array | string, { extractable, usages }?: { extractable?: boolean | undefined; usages?: Usages | undefined; }): Promise<CryptoKey>; export type Usages = Array<'encrypt' | 'decrypt'>; export { exportKeyJwk, exportKeyRaw } from "./common.js"; //# sourceMappingURL=aes-gcm.d.ts.map