mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(mz): Update to v2.7
* fix(mz): Keep support for TypeScript 2.0
* fix(mz): Add myself to the contributors list
* test(mz): Refactor tests to remove override in `.editorconfig`
* chore(mz): Remove `.editorconfig` 😡️
* fix(mz): Fix name of `dest` parameter in `fs.copyFile(…)`
* refactor(mz): Remove need for setting `"unified‑signatures": false`
28 lines
858 B
TypeScript
28 lines
858 B
TypeScript
// Modified from the node.js definitions.
|
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/crypto.d.ts
|
|
|
|
import { BinaryLike } from "crypto";
|
|
export * from "crypto";
|
|
|
|
export function pbkdf2(
|
|
password: BinaryLike,
|
|
salt: BinaryLike,
|
|
iterations: number,
|
|
keylen: number,
|
|
digest: string,
|
|
callback: (err: Error | null, derivedKey: Buffer) => any
|
|
): void;
|
|
export function pbkdf2(
|
|
password: BinaryLike,
|
|
salt: BinaryLike,
|
|
iterations: number,
|
|
keylen: number,
|
|
digest: string
|
|
): Promise<Buffer>;
|
|
|
|
export function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
|
export function randomBytes(size: number): Promise<Buffer>;
|
|
|
|
export function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
|
export function pseudoRandomBytes(size: number): Promise<Buffer>;
|