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 --- wake.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wake.cpp') diff --git a/wake.cpp b/wake.cpp index 3fc0b2fe..3c0f5578 100644 --- a/wake.cpp +++ b/wake.cpp @@ -60,7 +60,7 @@ void WAKE_Base::GenKey(word32 k0, word32 k1, word32 k2, word32 k3) } template -void WAKE_Policy::CipherSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length) +void WAKE_Policy::CipherSetKey(const NameValuePairs ¶ms, const byte *key, size_t length) { word32 k0, k1, k2, k3; BlockGetAndPut::Get(key)(r3)(r4)(r5)(r6)(k0)(k1)(k2)(k3); @@ -69,7 +69,7 @@ void WAKE_Policy::CipherSetKey(const NameValuePairs ¶ms, const byte *key, // CFB template -void WAKE_Policy::Iterate(byte *output, const byte *input, CipherDir dir, unsigned int iterationCount) +void WAKE_Policy::Iterate(byte *output, const byte *input, CipherDir dir, size_t iterationCount) { RegisterOutput registerOutput(output, input, dir); @@ -85,7 +85,7 @@ void WAKE_Policy::Iterate(byte *output, const byte *input, CipherDir dir, uns // OFB template -void WAKE_Policy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, unsigned int iterationCount) +void WAKE_Policy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount) { KeystreamOutput keystreamOperation(operation, output, input); -- cgit v1.2.1