Functions
deriveKey
- deriveKey(password: Uint8Array, salt: Uint8Array, N: number, r: number, p: number, dkLen: number): Uint8Array
Parameters
password: Uint8Array
salt: Uint8Array
N: number
r: number
p: number
dkLen: number
Returns Uint8Array
deriveKeyNonBlocking
- deriveKeyNonBlocking(password: Uint8Array, salt: Uint8Array, N: number, r: number, p: number, dkLen: number): Promise<Uint8Array>
Parameters
password: Uint8Array
salt: Uint8Array
N: number
r: number
p: number
dkLen: number
Returns Promise<Uint8Array>
Derives a key from password and salt with parameters N — CPU/memory cost, r — block size, p — parallelization, containing dkLen bytes.