From c71b5275b51fb1d8476cacbed6e35f2ff288bc15 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 19 Nov 2024 22:54:38 +0100 Subject: [PATCH] changed checksum prime/segment ratio --- include/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crypto.h b/include/crypto.h index 5141f94..2d34173 100644 --- a/include/crypto.h +++ b/include/crypto.h @@ -25,7 +25,7 @@ extern "C" { //MACROS #define WHY2_CHECKSUM_SEGMENT_SIZE 4 //SEGMENT SIZE FOR CALCULATING CHECKSUM -#define WHY2_CHECKSUM_PRIME 5 //PRIME NUMBER FOR ROTATION +#define WHY2_CHECKSUM_PRIME 11 //PRIME NUMBER FOR ROTATION //FUNCTIONS unsigned long why2_checksum_segment(char *input); //TOO LONG TO EXPLAIN, DEAL WITH IT. TREAT IT LIKE A NORMAL CHECKSUM