diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-02-24 01:06:41 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-02-24 01:06:41 +0000 |
commit | 7c7958ccc0d48a0ec54a58585fa1ae482b6e1eb8 (patch) | |
tree | fd4f5c4e8cd661fb0a5d1a348baa3007b60977d7 /modes.cpp | |
parent | db22cfbee38b0995f9454f74accfe8377b6d74fe (diff) | |
download | cryptopp-git-7c7958ccc0d48a0ec54a58585fa1ae482b6e1eb8.tar.gz |
fix whitespace problems
Diffstat (limited to 'modes.cpp')
-rw-r--r-- | modes.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -74,23 +74,23 @@ void CTR_ModePolicy::SeekToIteration(dword iterationCount) static inline void IncrementCounterByOne(byte *inout, unsigned int s) { - for (int i=s-1, carry=1; i>=0 && carry; i--) - carry = !++inout[i]; + for (int i=s-1, carry=1; i>=0 && carry; i--) + carry = !++inout[i]; } static inline void IncrementCounterByOne(byte *output, const byte *input, unsigned int s) { - for (int i=s-1, carry=1; i>=0; i--) - carry = !(output[i] = input[i]+carry) && carry; + for (int i=s-1, carry=1; i>=0; i--) + carry = !(output[i] = input[i]+carry) && carry; } -inline void CTR_ModePolicy::ProcessMultipleBlocks(byte *output, const byte *input, unsigned int n) +inline void CTR_ModePolicy::ProcessMultipleBlocks(byte *output, const byte *input, unsigned int n) { - unsigned int s = BlockSize(), j = 0; - for (unsigned int i=1; i<n; i++, j+=s) + unsigned int s = BlockSize(), j = 0; + for (unsigned int i=1; i<n; i++, j+=s) IncrementCounterByOne(m_counterArray + j + s, m_counterArray + j, s); m_cipher->ProcessAndXorMultipleBlocks(m_counterArray, input, output, n); - IncrementCounterByOne(m_counterArray, m_counterArray + s*(n-1), s); + IncrementCounterByOne(m_counterArray, m_counterArray + s*(n-1), s); } void CTR_ModePolicy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, unsigned int iterationCount) |