diff --git a/lib/src/algorithms/argon2/argon2.dart b/lib/src/algorithms/argon2/argon2.dart index 535fdbf..c4d75ed 100644 --- a/lib/src/algorithms/argon2/argon2.dart +++ b/lib/src/algorithms/argon2/argon2.dart @@ -164,7 +164,7 @@ class Argon2 extends KeyDerivatorBase { parallelism: int.parse(p), memorySizeKB: int.parse(m), salt: data.saltBytes(), - hashLength: data.hash?.length, + hashLength: data.hashBytes()?.lengthInBytes, key: key, personalization: personalization, );