From 63121e1e169616f724bf79b8aac1a2b4423c8904 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 13 Oct 2010 02:45:00 +0000 Subject: Use output_length() instead of OUTPUT_LENGTH pseudo-property --- src/hash/sha2_64/sha2_64.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hash/sha2_64') diff --git a/src/hash/sha2_64/sha2_64.cpp b/src/hash/sha2_64/sha2_64.cpp index 96e672819..3c1df9be6 100644 --- a/src/hash/sha2_64/sha2_64.cpp +++ b/src/hash/sha2_64/sha2_64.cpp @@ -178,7 +178,7 @@ void SHA_384::compress_n(const byte input[], size_t blocks) */ void SHA_384::copy_out(byte output[]) { - for(size_t i = 0; i != OUTPUT_LENGTH; i += 8) + for(size_t i = 0; i != output_length(); i += 8) store_be(digest[i/8], output + i); } @@ -212,7 +212,7 @@ void SHA_512::compress_n(const byte input[], size_t blocks) */ void SHA_512::copy_out(byte output[]) { - for(size_t i = 0; i != OUTPUT_LENGTH; i += 8) + for(size_t i = 0; i != output_length(); i += 8) store_be(digest[i/8], output + i); } -- cgit v1.2.3