From 6ce1c78f6dbea0040464d287ee1098eec7be8b06 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Mon, 5 Jul 2021 13:21:10 +0200 Subject: [PATCH] fix CT_MAX_LEN_BASE64 define --- src/modules/module_26600.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module_26600.c b/src/modules/module_26600.c index ac271b515..61ccac983 100644 --- a/src/modules/module_26600.c +++ b/src/modules/module_26600.c @@ -113,7 +113,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE pbkdf2_sha256_aes_gcm_t *metamask = (pbkdf2_sha256_aes_gcm_t *) esalt_buf; - #define CT_MAX_LEN_BASE64 ((768 * 8) / 6) + 3 + #define CT_MAX_LEN_BASE64 (((768+16) * 8) / 6) + 3 token_t token; @@ -249,7 +249,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE #define SALT_LEN_BASE64 ((32 * 8) / 6) + 3 #define IV_LEN_BASE64 ((16 * 8) / 6) + 3 - #define CT_MAX_LEN_BASE64 ((768 * 8) / 6) + 3 + #define CT_MAX_LEN_BASE64 (((768+16) * 8) / 6) + 3 u8 salt_buf[SALT_LEN_BASE64] = { 0 };