@peculiar/webcrypto
Version:
A WebCrypto Polyfill for NodeJS
14 lines • 544 B
TypeScript
/**
* Copyright (c) 2019-2026, Peculiar Ventures
* SPDX-License-Identifier: MIT
*/
import { SubtleCrypto } from "./subtle.js";
import * as core from "webcrypto-core";
interface GenerateKeyPair {
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
}
export declare class Crypto extends core.Crypto {
subtle: GenerateKeyPair & SubtleCrypto & globalThis.SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
}
export {};