From efa0fc92b7a9ce55b1b8aa3322834748dca2e2f8 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 19 Jun 2003 19:05:50 +0000 Subject: [PATCH] fix assert --- trunk/c5/pwdbased.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/c5/pwdbased.h b/trunk/c5/pwdbased.h index 28807046..ec9809d9 100644 --- a/trunk/c5/pwdbased.h +++ b/trunk/c5/pwdbased.h @@ -51,7 +51,7 @@ public: template void PKCS5_PBKDF1::DeriveKey(byte *derived, unsigned int derivedLen, const byte *password, unsigned int passwordLen, const byte *salt, unsigned int saltLen, unsigned int iterations) const { - assert(derivedLen <= MaxDerivedLength()); + assert(derivedLen <= MaxDerivedKeyLength()); assert(iterations > 0); T hash;