fix assert

pull/2/head
weidai 2003-06-19 19:05:50 +00:00
parent 376fe5b4ae
commit 64edb705d8
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public:
template <class T> template <class T>
void PKCS5_PBKDF1<T>::DeriveKey(byte *derived, unsigned int derivedLen, const byte *password, unsigned int passwordLen, const byte *salt, unsigned int saltLen, unsigned int iterations) const void PKCS5_PBKDF1<T>::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); assert(iterations > 0);
T hash; T hash;