From e99bb4b8d4b0bb72a7493121855928de9ddb6a62 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sun, 6 Aug 2017 00:16:28 +0200 Subject: [PATCH] Added SHA_512_BLOCK_SIZE to correct naming --- tests/self.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/self.c b/tests/self.c index 39cb6ae..f5fbdc8 100644 --- a/tests/self.c +++ b/tests/self.c @@ -22,6 +22,7 @@ #define CHACHA_NB_BLOCKS 10 #define POLY1305_BLOCK_SIZE 16 #define BLAKE2B_BLOCK_SIZE 128 +#define SHA_512_BLOCK_SIZE 128 typedef int8_t i8; typedef uint8_t u8; typedef uint32_t u32; @@ -455,9 +456,9 @@ static int p_blake2b() static int p_sha512() { // total input size - static const size_t input_size = BLAKE2B_BLOCK_SIZE * 4; + static const size_t input_size = SHA_512_BLOCK_SIZE * 4; // maximum chunk size - static const size_t c_max_size = BLAKE2B_BLOCK_SIZE * 2; + static const size_t c_max_size = SHA_512_BLOCK_SIZE * 2; int status = 0; FOR (i, 0, 1000) { size_t offset = 0; -- 2.47.3