diff options
Diffstat (limited to 'src/lib/hash/skein/skein_512.cpp')
-rw-r--r-- | src/lib/hash/skein/skein_512.cpp | 5 |
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(); |