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/skein/skein_512.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lib/hash/skein') diff --git a/src/lib/hash/skein/skein_512.cpp b/src/lib/hash/skein/skein_512.cpp index 38eb3c89f..aac481648 100644 --- a/src/lib/hash/skein/skein_512.cpp +++ b/src/lib/hash/skein/skein_512.cpp @@ -158,10 +158,7 @@ void Skein_512::final_result(byte out[]) reset_tweak(SKEIN_OUTPUT, true); ubi_512(counter, sizeof(counter)); - const size_t out_bytes = output_bits / 8; - - for(size_t i = 0; i != out_bytes; ++i) - out[i] = get_byte(7-i%8, m_threefish->m_K[i/8]); + copy_out_vec_le(out, output_bits / 8, m_threefish->m_K); buf_pos = 0; initial_block(); -- cgit v1.2.3