Pbkdf2Sha256¶
Derive a key from a password using PBKDF2 with HMAC-SHA-256 as the PRF, as defined in RFC 2898.
Returns a key of the requested length, or raises an error if the derivation
fails (e.g., zero iterations), or if any of the iteration count, the key
length, or the password or salt length is larger than OpenSSL's int can
hold.
Constructors¶
create¶
Returns¶
- Pbkdf2Sha256 val^
Public Functions¶
apply¶
fun box apply(
password: ByteSeq,
salt: ByteSeq,
iterations: U32 val,
key_length: USize val)
: Array[U8 val] val ?
Parameters¶
Returns¶
eq¶
Parameters¶
- that: Pbkdf2Sha256 val
Returns¶
- Bool val
ne¶
Parameters¶
- that: Pbkdf2Sha256 val
Returns¶
- Bool val