From: Loup Vaillant Date: Sat, 5 Aug 2017 22:16:28 +0000 (+0200) Subject: Added SHA_512_BLOCK_SIZE to correct naming X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=e99bb4b8d4b0bb72a7493121855928de9ddb6a62;p=Monocypher.git Added SHA_512_BLOCK_SIZE to correct naming --- 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;