pbkdf2Sha512DeriveKey method

  1. @override
BuBytes pbkdf2Sha512DeriveKey({
  1. required List<int> password,
  2. required List<int> salt,
  3. required int iterations,
  4. required int length,
})
override

Derives length bytes with PBKDF2-HMAC-SHA512 from arbitrary password/salt. iterations and length must be non-negative. Throws on negative values or backend failure.

Implementation

@override
BuBytes pbkdf2Sha512DeriveKey({
  required List<int> password,
  required List<int> salt,
  required int iterations,
  required int length,
}) {
  _isValid([iterations, length], "pbkdf2Sha512DeriveKey");
  return inner.pbkdf2Sha512DeriveKey(
    password: password,
    salt: salt,
    iterations: iterations,
    length: length,
  );
}