Static ReadonlyINDEXThe method discriminant that opens the PBKDF2 parameter array on the wire.
Returns the salt.
Returns the number of iterations.
Returns the hash type.
StaticfromParameters with a fresh random salt unless one is given.
Returns the method index for CBOR encoding.
Derive a key from the secret and encrypt the content key.
Derive a key from the secret and decrypt the content key.
Get string representation.
Convert to CBOR.
Format: [1, Salt, iterations, HashType] (Salt is encoded as a tagged value — #6.40018(bytes))
Convert to CBOR binary data.
StaticfromFrom the CBOR array, as the reference's TryFrom<CBOR> (a dcbor error):
every failure is Cbor with the bare message. The index element is
read as a usize (with dcbor's negative wrap) and its value ignored;
the fixed-width fields wrap the same way.
PBKDF2 parameters for password-based key derivation.