diff options
Diffstat (limited to 'src/lib/hash/sha1/sha160.cpp')
-rw-r--r-- | src/lib/hash/sha1/sha160.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/hash/sha1/sha160.cpp b/src/lib/hash/sha1/sha160.cpp index f5daaadb2..42dc8a206 100644 --- a/src/lib/hash/sha1/sha160.cpp +++ b/src/lib/hash/sha1/sha160.cpp @@ -140,8 +140,7 @@ void SHA_160::compress_n(const byte input[], size_t blocks) */ void SHA_160::copy_out(byte output[]) { - for(size_t i = 0; i != output_length(); i += 4) - store_be(digest[i/4], output + i); + copy_out_vec_be(output, output_length(), digest); } /* |