diff options
Diffstat (limited to 'src/hash/sha2_32')
-rw-r--r-- | src/hash/sha2_32/sha2_32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/sha2_32/sha2_32.cpp b/src/hash/sha2_32/sha2_32.cpp index 6bbf6dec9..4e5f2b38c 100644 --- a/src/hash/sha2_32/sha2_32.cpp +++ b/src/hash/sha2_32/sha2_32.cpp @@ -171,7 +171,7 @@ void SHA_224::compress_n(const byte input[], size_t blocks) */ void SHA_224::copy_out(byte output[]) { - for(size_t i = 0; i != OUTPUT_LENGTH; i += 4) + for(size_t i = 0; i != output_length(); i += 4) store_be(digest[i/4], output + i); } @@ -205,7 +205,7 @@ void SHA_256::compress_n(const byte input[], size_t blocks) */ void SHA_256::copy_out(byte output[]) { - for(size_t i = 0; i != OUTPUT_LENGTH; i += 4) + for(size_t i = 0; i != output_length(); i += 4) store_be(digest[i/4], output + i); } |