diff options
Diffstat (limited to 'cipher/hash-common.h')
-rw-r--r-- | cipher/hash-common.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cipher/hash-common.h b/cipher/hash-common.h index e1ae5a24..27d670d8 100644 --- a/cipher/hash-common.h +++ b/cipher/hash-common.h @@ -33,15 +33,9 @@ typedef unsigned int (*_gcry_md_block_write_t) (void *c, const unsigned char *blks, size_t nblks); -#if defined(HAVE_U64_TYPEDEF) && (defined(USE_SHA512) || defined(USE_SHA3) || \ - defined(USE_WHIRLPOOL)) -/* SHA-512, SHA-3 and Whirlpool needs u64. SHA-512 and SHA3 need larger - * buffer. */ -# ifdef USE_SHA3 -# define MD_BLOCK_MAX_BLOCKSIZE (1152 / 8) -# else -# define MD_BLOCK_MAX_BLOCKSIZE 128 -# endif +#if defined(HAVE_U64_TYPEDEF) && (defined(USE_SHA512) || defined(USE_WHIRLPOOL)) +/* SHA-512 and Whirlpool needs u64. SHA-512 needs larger buffer. */ +# define MD_BLOCK_MAX_BLOCKSIZE 128 # define MD_NBLOCKS_TYPE u64 #else # define MD_BLOCK_MAX_BLOCKSIZE 64 |