From 1db8ea50840eb47f0f7d8f3c30d8e0916932ce90 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 12 Jul 2005 04:23:32 +0000 Subject: port to MSVC .NET 2005 beta 2 --- seal.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'seal.cpp') diff --git a/seal.cpp b/seal.cpp index 0962c67f..34d45c8a 100644 --- a/seal.cpp +++ b/seal.cpp @@ -44,7 +44,7 @@ word32 SEAL_Gamma::Apply(word32 i) } template -void SEAL_Policy::CipherSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length) +void SEAL_Policy::CipherSetKey(const NameValuePairs ¶ms, const byte *key, size_t length) { m_insideCounter = m_outsideCounter = m_startCount = 0; @@ -82,13 +82,13 @@ void SEAL_Policy::SeekToIteration(lword iterationCount) } template -void SEAL_Policy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, unsigned int iterationCount) +void SEAL_Policy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount) { KeystreamOutput keystreamOutput(operation, output, input); word32 a, b, c, d, n1, n2, n3, n4; unsigned int p, q; - for (unsigned int iteration = 0; iteration < iterationCount; ++iteration) + for (size_t iteration = 0; iteration < iterationCount; ++iteration) { #define Ttab(x) *(word32 *)((byte *)m_T.begin()+x) -- cgit v1.2.1