From e0274ec6c1192808a34ccd1cca8d556c8fd5b9d6 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 20 Nov 2024 16:23:14 +0100 Subject: [PATCH] incread segment_size to 32 --- include/crypto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/crypto.h b/include/crypto.h index ee61dd0..7ba5e8a 100644 --- a/include/crypto.h +++ b/include/crypto.h @@ -24,11 +24,11 @@ extern "C" { #endif //MACROS -#define WHY2_CHECKSUM_SEGMENT_SIZE 4 //SEGMENT SIZE FOR CALCULATING CHECKSUM +#define WHY2_CHECKSUM_SEGMENT_SIZE 32 //SEGMENT SIZE FOR CALCULATING SUM #define WHY2_CHECKSUM_PRIME 11 //PRIME NUMBER FOR ROTATION //FUNCTIONS -unsigned long why2_sum_segment(char *input); //TOO LONG TO EXPLAIN, DEAL WITH IT. TREAT IT LIKE A NORMAL CHECKSUM +unsigned long why2_sum_segment(char *input); //CALCULATE SUM++ FOR input; USED FOR PADDING SEED #ifdef __cplusplus }