From df3d51172b0dc22ea1fdbda33fbecf51b4119c19 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 21 Dec 2006 01:35:12 +0000 Subject: [PATCH] fix for DLL-import configuration --- des.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/des.cpp b/des.cpp index c1764774..a6e0c514 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);