aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-01-22 21:37:04 +0000
committerlloyd <[email protected]>2010-01-22 21:37:04 +0000
commitff0f319cebdee80d500a9a3efaa5710df5c55bd9 (patch)
tree72719ed9b6305c8d0358c5811922c44e3eafcf95 /src/hash
parent9c92ceb2b3bcc9537b4fe572f771d7bbaf8a478a (diff)
parentd490659cd20c73f5e269b2e5f471512927df8ca7 (diff)
propagate from branch 'net.randombit.botan' (head e088ea1566600cf598bcdc6840fcbbc662ab7393)
to branch 'net.randombit.botan.c++0x' (head 47ff08dfd9a19fad36bf4aa7fa10854fd9071e0a)
Diffstat (limited to 'src/hash')
-rw-r--r--src/hash/sha1/sha160.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/sha1/sha160.cpp b/src/hash/sha1/sha160.cpp
index ff44593f6..1ad08d483 100644
--- a/src/hash/sha1/sha160.cpp
+++ b/src/hash/sha1/sha160.cpp
@@ -134,8 +134,8 @@ void SHA_160::compress_n(const byte input[], u32bit blocks)
*/
void SHA_160::copy_out(byte output[])
{
- for(u32bit j = 0; j != OUTPUT_LENGTH; j += 4)
- store_be(digest[j/4], output + j);
+ for(u32bit i = 0; i != OUTPUT_LENGTH; i += 4)
+ store_be(digest[i/4], output + i);
}
/*