From d8a644fc4ee2af9dc62f2a8c167b023d0c71d13b Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 2 Mar 2009 02:39:17 +0000 Subject: changes for 5.6: - added AuthenticatedSymmetricCipher interface class and Filter wrappers - added CCM, GCM (with SSE2 assembly), CMAC, and SEED - improved AES speed on x86 and x64 - removed WORD64_AVAILABLE; compiler 64-bit int support is now required --- seal.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'seal.cpp') diff --git a/seal.cpp b/seal.cpp index 196965f8..f49b5220 100644 --- a/seal.cpp +++ b/seal.cpp @@ -3,9 +3,6 @@ #include "pch.h" -// prevent Sun's CC compiler from including this file automatically -#if !(defined(__SUNPRO_CC) && defined(CRYPTOPP_ITERHASH_H)) - #include "seal.h" #include "sha.h" #include "misc.h" @@ -69,8 +66,9 @@ void SEAL_Policy::CipherSetKey(const NameValuePairs ¶ms, const byte *key, } template -void SEAL_Policy::CipherResynchronize(byte *keystreamBuffer, const byte *IV) +void SEAL_Policy::CipherResynchronize(byte *keystreamBuffer, const byte *IV, size_t length) { + assert(length==4); m_outsideCounter = IV ? GetWord(false, BIG_ENDIAN_ORDER, IV) : 0; m_startCount = m_outsideCounter; m_insideCounter = 0; @@ -213,5 +211,3 @@ template class SEAL_Policy; template class SEAL_Policy; NAMESPACE_END - -#endif -- cgit v1.2.1