2019-07-21 01:56:43 +03:00
|
|
|
declare module "scrypt-js" {
|
2019-11-13 15:47:08 +03:00
|
|
|
export type ProgressCallback = (progress: number) => boolean | void;
|
|
|
|
export function scrypt(password: Uint8Array, salt: Uint8Array, N: number, r: number, p: number, dkLen: number, callback?: ProgressCallback): Promise<Uint8Array>;
|
|
|
|
export function scryptSync(password: Uint8Array, salt: Uint8Array, N: number, r: number, p: number, dkLen: number): Uint8Array;
|
2019-07-21 01:56:43 +03:00
|
|
|
}
|