KDFScrypt constructor
KDFScrypt({})
Implementation
factory KDFScrypt({
required int dklen,
required int n,
required int r,
required int p,
required List<int> salt,
}) {
if (salt.length != _SecretStorageConst.saltLength) {
throw ArgumentException.invalidOperationArguments(
"KDFScrypt",
name: "salt",
reason: "Invalid salt bytes length.",
);
}
return KDFScrypt._(dklen, n, r, p, salt);
}