1 |
|
2 |
|
3 |
|
4 | import { BinaryLike } from "crypto";
|
5 | export * from "crypto";
|
6 |
|
7 | export function pbkdf2(
|
8 | password: BinaryLike,
|
9 | salt: BinaryLike,
|
10 | iterations: number,
|
11 | keylen: number,
|
12 | digest: string,
|
13 | callback: (err: Error | null, derivedKey: Buffer) => any,
|
14 | ): void;
|
15 | export function pbkdf2(
|
16 | password: BinaryLike,
|
17 | salt: BinaryLike,
|
18 | iterations: number,
|
19 | keylen: number,
|
20 | digest: string,
|
21 | ): Promise<Buffer>;
|
22 |
|
23 | export function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
24 | export function randomBytes(size: number): Promise<Buffer>;
|
25 |
|
26 | export function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
27 | export function pseudoRandomBytes(size: number): Promise<Buffer>;
|