Static ReadonlyINDEXThe method discriminant that opens the scrypt parameter array on the wire.
Returns the salt.
Returns the log_n parameter.
Returns the r parameter (block size).
Returns the p parameter (parallelism).
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: [2, Salt, log_n, r, p] (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.
Scrypt parameters for password-based key derivation.
Parameters: