From a2f7dfe3afb5c056fdbb2a7e3f2e20753771fa95 Mon Sep 17 00:00:00 2001 From: weidai Date: Sun, 6 Oct 2002 03:58:13 +0000 Subject: bug fix and optimization git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@8 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- modes.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'modes.h') diff --git a/modes.h b/modes.h index f498400..671f212 100644 --- a/modes.h +++ b/modes.h @@ -142,19 +142,7 @@ class CTR_ModePolicy : public ModePolicyCommonTemplate=0; i--) - carry = !(output[i] = input[i]+1); - } - inline void ProcessMultipleBlocks(byte *output, const byte *input, unsigned int n) - { - unsigned int s = BlockSize(), j = 0; - for (unsigned int i=1; iProcessAndXorMultipleBlocks(m_counterArray, input, output, n); - IncrementCounterByOne(m_counterArray, m_counterArray + s*(n-1), s); - } + inline void ProcessMultipleBlocks(byte *output, const byte *input, unsigned int n); SecByteBlock m_counterArray; }; -- cgit v1.2.1