aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/skein
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/skein
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/skein')
-rw-r--r--src/lib/hash/skein/skein_512.cpp5
1 files changed, 1 insertions, 4 deletions
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();