aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/sha2
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-05 17:17:09 +0000
committerlloyd <[email protected]>2009-11-05 17:17:09 +0000
commit1860807e4ed230f3aeea0831ec180e55d2f0eaa4 (patch)
tree26de4fd5ab0d94ef7700ea1c077b8e11ec523fbb /src/hash/sha2
parentb8658279904708d0690e473fb85942d5da23d2fc (diff)
parent56c3c044215f36fe00c9a8a2e06a84f969996cb7 (diff)
propagate from branch 'net.randombit.botan' (head cead7027e70b68a8b4ae2e5bd8f290066e5ea22a)
to branch 'net.randombit.botan.c++0x' (head 9edbd485060131b695170f5243a100e06e3b0c71)
Diffstat (limited to 'src/hash/sha2')
-rw-r--r--src/hash/sha2/sha2_64.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hash/sha2/sha2_64.cpp b/src/hash/sha2/sha2_64.cpp
index e260d8338..3e7c0e228 100644
--- a/src/hash/sha2/sha2_64.cpp
+++ b/src/hash/sha2/sha2_64.cpp
@@ -55,9 +55,7 @@ void SHA_384_512_BASE::compress_n(const byte input[], u32bit blocks)
for(u32bit i = 0; i != blocks; ++i)
{
- for(u32bit j = 0; j != 16; ++j)
- W[j] = load_be<u64bit>(input, j);
- input += HASH_BLOCK_SIZE;
+ load_be(W.begin(), input, 16);
for(u32bit j = 16; j != 80; j += 8)
{
@@ -160,6 +158,8 @@ void SHA_384_512_BASE::compress_n(const byte input[], u32bit blocks)
F = (digest[5] += F);
G = (digest[6] += G);
H = (digest[7] += H);
+
+ input += HASH_BLOCK_SIZE;
}
}