1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | type TypedArray =
|
9 | | Int8Array
|
10 | | Uint8Array
|
11 | | Uint8ClampedArray
|
12 | | Int16Array
|
13 | | Uint16Array
|
14 | | Int32Array
|
15 | | Uint32Array
|
16 | | Float32Array
|
17 | | Float64Array;
|
18 | export function pbkdf2(
|
19 | password: string | Buffer | TypedArray | DataView,
|
20 | salt: string | Buffer | TypedArray | DataView,
|
21 | iterations: number,
|
22 | keylen: number,
|
23 | callback: (err: Error, derivedKey: Buffer) => void,
|
24 | ): void;
|
25 | export function pbkdf2(
|
26 | password: string | Buffer | TypedArray | DataView,
|
27 | salt: string | Buffer | TypedArray | DataView,
|
28 | iterations: number,
|
29 | keylen: number,
|
30 | digest: string,
|
31 | callback: (err: Error, derivedKey: Buffer) => void,
|
32 | ): void;
|
33 | export function pbkdf2Sync(
|
34 | password: string | Buffer | TypedArray | DataView,
|
35 | salt: string | Buffer | TypedArray | DataView,
|
36 | iterations: number,
|
37 | keylen: number,
|
38 | digest?: string,
|
39 | ): Buffer;
|
40 |
|
41 | export {};
|