diff options
Diffstat (limited to 'rijndael.cpp')
-rw-r--r-- | rijndael.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rijndael.cpp b/rijndael.cpp index 7131e01..5749c59 100644 --- a/rijndael.cpp +++ b/rijndael.cpp @@ -54,7 +54,7 @@ being unloaded from L1 cache, until that round is finished. NAMESPACE_BEGIN(CryptoPP) -void Rijndael::Base::UncheckedSetKey(CipherDir dir, const byte *userKey, unsigned int keylen) +void Rijndael::Base::UncheckedSetKey(const byte *userKey, unsigned int keylen, const NameValuePairs &) { AssertValidKeyLength(keylen); @@ -103,7 +103,7 @@ void Rijndael::Base::UncheckedSetKey(CipherDir dir, const byte *userKey, unsigne rk += keylen/4; } - if (dir == DECRYPTION) + if (!IsForwardTransformation()) { unsigned int i, j; rk = m_key; |