From 718d577455c2e431e32064950f2612e1381c275a Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 8 Jan 2015 01:11:17 +0000 Subject: Add SHA-512/256 Define some new functions for copying out arrays of words and use them across hashes. --- src/lib/hash/whirlpool/whirlpool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/hash/whirlpool') diff --git a/src/lib/hash/whirlpool/whirlpool.cpp b/src/lib/hash/whirlpool/whirlpool.cpp index 5356252b2..736de0e1d 100644 --- a/src/lib/hash/whirlpool/whirlpool.cpp +++ b/src/lib/hash/whirlpool/whirlpool.cpp @@ -129,8 +129,7 @@ void Whirlpool::compress_n(const byte in[], size_t blocks) */ void Whirlpool::copy_out(byte output[]) { - for(size_t i = 0; i != output_length(); i += 8) - store_be(digest[i/8], output + i); + copy_out_vec_be(output, output_length(), digest); } /* -- cgit v1.2.3