@@ -61,7 +61,7 @@ class PKCS5_PBKDF1 : public PasswordBasedKeyDerivationFunction
6161 // / \param iterations the number of iterations
6262 // / \param timeInSeconds the in seconds
6363 // / \returns the number of iterations performed
64- // / \throws InvalidDerivedLength if <tt>derivedLen</tt> is invalid for the scheme
64+ // / \throws InvalidDerivedKeyLength if <tt>derivedLen</tt> is invalid for the scheme
6565 // / \details DeriveKey() provides a standard interface to derive a key from
6666 // / a seed and other parameters. Each class that derives from KeyDerivationFunction
6767 // / provides an overload that accepts most parameters used by the derivation function.
@@ -116,7 +116,7 @@ size_t PKCS5_PBKDF1<T>::DeriveKey(byte *derived, size_t derivedLen, byte purpose
116116 CRYPTOPP_ASSERT (iterations > 0 || timeInSeconds > 0 );
117117 CRYPTOPP_UNUSED (purpose);
118118
119- ThrowIfInvalidDerivedLength (derivedLen);
119+ ThrowIfInvalidDerivedKeyLength (derivedLen);
120120
121121 // Business logic
122122 if (!iterations) { iterations = 1 ; }
@@ -187,7 +187,7 @@ class PKCS5_PBKDF2_HMAC : public PasswordBasedKeyDerivationFunction
187187 // / \param iterations the number of iterations
188188 // / \param timeInSeconds the in seconds
189189 // / \returns the number of iterations performed
190- // / \throws InvalidDerivedLength if <tt>derivedLen</tt> is invalid for the scheme
190+ // / \throws InvalidDerivedKeyLength if <tt>derivedLen</tt> is invalid for the scheme
191191 // / \details DeriveKey() provides a standard interface to derive a key from
192192 // / a seed and other parameters. Each class that derives from KeyDerivationFunction
193193 // / provides an overload that accepts most parameters used by the derivation function.
@@ -241,7 +241,7 @@ size_t PKCS5_PBKDF2_HMAC<T>::DeriveKey(byte *derived, size_t derivedLen, byte pu
241241 CRYPTOPP_ASSERT (iterations > 0 || timeInSeconds > 0 );
242242 CRYPTOPP_UNUSED (purpose);
243243
244- ThrowIfInvalidDerivedLength (derivedLen);
244+ ThrowIfInvalidDerivedKeyLength (derivedLen);
245245
246246 // Business logic
247247 if (!iterations) { iterations = 1 ; }
@@ -344,7 +344,7 @@ class PKCS12_PBKDF : public PasswordBasedKeyDerivationFunction
344344 // / \param iterations the number of iterations
345345 // / \param timeInSeconds the in seconds
346346 // / \returns the number of iterations performed
347- // / \throws InvalidDerivedLength if <tt>derivedLen</tt> is invalid for the scheme
347+ // / \throws InvalidDerivedKeyLength if <tt>derivedLen</tt> is invalid for the scheme
348348 // / \details DeriveKey() provides a standard interface to derive a key from
349349 // / a seed and other parameters. Each class that derives from KeyDerivationFunction
350350 // / provides an overload that accepts most parameters used by the derivation function.
@@ -398,7 +398,7 @@ size_t PKCS12_PBKDF<T>::DeriveKey(byte *derived, size_t derivedLen, byte purpose
398398 CRYPTOPP_ASSERT (derivedLen <= MaxDerivedKeyLength ());
399399 CRYPTOPP_ASSERT (iterations > 0 || timeInSeconds > 0 );
400400
401- ThrowIfInvalidDerivedLength (derivedLen);
401+ ThrowIfInvalidDerivedKeyLength (derivedLen);
402402
403403 // Business logic
404404 if (!iterations) { iterations = 1 ; }
0 commit comments