From b50305f08094bb5dce60e01bf8df181e56d4bd5b Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 20 Nov 2024 16:27:48 +0100 Subject: [PATCH] created mod & base primes macros --- include/crypto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/crypto.h b/include/crypto.h index 7ba5e8a..3155400 100644 --- a/include/crypto.h +++ b/include/crypto.h @@ -26,6 +26,8 @@ extern "C" { //MACROS #define WHY2_CHECKSUM_SEGMENT_SIZE 32 //SEGMENT SIZE FOR CALCULATING SUM #define WHY2_CHECKSUM_PRIME 11 //PRIME NUMBER FOR ROTATION +#define WHY2_SUM_BASE_PRIME 31 //PRIME FOR SUM BASE +#define WHY2_SUM_MOD_PRIME 4294967295UL //PRIME FOR SUM MODULUS //FUNCTIONS unsigned long why2_sum_segment(char *input); //CALCULATE SUM++ FOR input; USED FOR PADDING SEED