derive

fun derive(p: CharArray, s: ByteArray, c: Int, dkLen: Int): ByteArray

Generate a derived key from the given parameters.

Parameters

p

the password

s

the salt

c

the iteration count

dkLen

the key length in bits