From 27881ba0388b18147734ca2b46fd760f6c1db86c Mon Sep 17 00:00:00 2001 From: Sudipto Chandra Date: Sat, 29 Jun 2024 17:05:44 +0400 Subject: [PATCH] BugFix: `Argon2.fromEncoded` hash length --- lib/src/algorithms/argon2/argon2.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, );