diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-12-14 12:53:44 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-12-14 12:53:44 +0000 |
commit | 03f54a866eb4f9f8acbcfbc94db366b0d9787ef9 (patch) | |
tree | 5b75f1798bac12561c4e761ac827105a7ed59001 /seckey.h | |
parent | 492b77b449a3d10d0ed8a930c73926324ec8a68a (diff) | |
download | cryptopp-git-03f54a866eb4f9f8acbcfbc94db366b0d9787ef9.tar.gz |
remove old code
Diffstat (limited to 'seckey.h')
-rw-r--r-- | seckey.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -45,14 +45,9 @@ public: static unsigned int StaticGetDefaultRounds(size_t keylength) {return DEFAULT_ROUNDS;} protected: - static inline void AssertValidRounds(unsigned int rounds) - { - assert(rounds >= (unsigned int)MIN_ROUNDS && rounds <= (unsigned int)MAX_ROUNDS); - } - inline void ThrowIfInvalidRounds(int rounds, const Algorithm *alg) { - if (rounds < (int)MIN_ROUNDS || rounds > (int)MAX_ROUNDS) + if (rounds < MIN_ROUNDS || rounds > MAX_ROUNDS) throw InvalidRounds(alg->AlgorithmName(), rounds); } |