From c3bad1afc1564f3bfac8434d45d6694811139333 Mon Sep 17 00:00:00 2001 From: weidai Date: Sun, 10 Dec 2006 02:12:23 +0000 Subject: port to GCC 4, reorganize implementations of SetKey git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@248 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rc5.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rc5.cpp') diff --git a/rc5.cpp b/rc5.cpp index 3c8259a..2b730de 100644 --- a/rc5.cpp +++ b/rc5.cpp @@ -6,12 +6,11 @@ NAMESPACE_BEGIN(CryptoPP) -void RC5::Base::UncheckedSetKey(CipherDir direction, const byte *k, unsigned int keylen, unsigned int rounds) +void RC5::Base::UncheckedSetKey(const byte *k, unsigned int keylen, const NameValuePairs ¶ms) { AssertValidKeyLength(keylen); - AssertValidRounds(rounds); - r = rounds; + r = GetRoundsAndThrowIfInvalid(params, this); sTable.New(2*(r+1)); static const RC5_WORD MAGIC_P = 0xb7e15163L; // magic constant P for wordsize -- cgit v1.2.1