PBKDF

Index

pbkdf pbkdf-timed

Reference

pbkdfcfunction
(pbkdf algo passphrase out-len &opt iterations salt)

Derive a key from a `passphrase` for a number of `iterations`(default 100000) using the given PBKDF algorithm, e.g., "PBKDF2(SHA-512)". The `salt` can be provided or otherwise is randomly chosen. Returns `out-len` bytes of output (or potentially less depending on the algorithm and the size of the request). Returns tuple of salt, iterations, and psk

pbkdf-timedcfunction
(pbkdf-timed algo passphrase out-len &opt ms-to-run salt)

Derive a key from a `passphrase` for a number of Runs for as many iterations as needed to consumed `ms-to-run` milliseconds on whatever we’re running on. Returns tuple of salt, iterations, and psk. Default value of `ms-to-run` is 300 and `salt` is 12 bytes of random values.