summaryrefslogtreecommitdiff
path: root/des.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-21 01:35:12 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-21 01:35:12 +0000
commit7dca639c5ba04d8be065ba8716132f34b623bd46 (patch)
tree17c3209bbe459bbd82e290c01d668a5e55c8b9ea /des.cpp
parenta7d02a8582db5cec9ce7992767b8682c79e757ca (diff)
downloadcryptopp-7dca639c5ba04d8be065ba8716132f34b623bd46.tar.gz
fix for DLL-import configuration
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@267 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'des.cpp')
-rw-r--r--des.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/des.cpp b/des.cpp
index c176477..a6e0c51 100644
--- a/des.cpp
+++ b/des.cpp
@@ -117,6 +117,13 @@ static inline void FPERM(word32 &left, word32 &right)
left = rotrFixed(left^work, 4U);
}
+void DES::Base::UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs &)
+{
+ AssertValidKeyLength(length);
+
+ RawSetKey(GetCipherDirection(), userKey);
+}
+
#ifndef CRYPTOPP_IMPORTS
/* Tables defined in the Data Encryption Standard documents
@@ -345,13 +352,6 @@ void RawDES::RawProcessBlock(word32 &l_, word32 &r_) const
l_ = l; r_ = r;
}
-void DES::Base::UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs &)
-{
- AssertValidKeyLength(length);
-
- RawSetKey(GetCipherDirection(), userKey);
-}
-
void DES_EDE2::Base::UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs &)
{
AssertValidKeyLength(length);