aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/md4
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-08 01:11:17 +0000
committerlloyd <[email protected]>2015-01-08 01:11:17 +0000
commit718d577455c2e431e32064950f2612e1381c275a (patch)
treef7fbbad052a82c9f17309f64f3de7e2cec5ad603 /src/lib/hash/md4
parent624787ec08f215a7b0be51ceeeb211a717bf7f50 (diff)
Add SHA-512/256
Define some new functions for copying out arrays of words and use them across hashes.
Diffstat (limited to 'src/lib/hash/md4')
-rw-r--r--src/lib/hash/md4/md4.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/hash/md4/md4.cpp b/src/lib/hash/md4/md4.cpp
index 9b9ebab36..4018758aa 100644
--- a/src/lib/hash/md4/md4.cpp
+++ b/src/lib/hash/md4/md4.cpp
@@ -94,8 +94,7 @@ void MD4::compress_n(const byte input[], size_t blocks)
*/
void MD4::copy_out(byte output[])
{
- for(size_t i = 0; i != output_length(); i += 4)
- store_le(digest[i/4], output + i);
+ copy_out_vec_le(output, output_length(), digest);
}
/*