From 5833502c7ac96dc627fa513273e7a5ffc0e602a5 Mon Sep 17 00:00:00 2001 From: ENGO150 <v.smejkal06@gmail.com> Date: Tue, 19 Nov 2024 22:30:18 +0100 Subject: [PATCH] added checksum warning --- src/core/lib/utils/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/utils/crypto.c b/src/core/lib/utils/crypto.c index 4cc4c60..64cc63a 100644 --- a/src/core/lib/utils/crypto.c +++ b/src/core/lib/utils/crypto.c @@ -21,7 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. #include <string.h> #include <math.h> -unsigned long why2_checksum_segment(char *input) +unsigned long why2_checksum_segment(char *input) //I ABSOLUTELY DO NOT RECOMMEND USING THIS WITH LARGE KEYS!!! { unsigned long input_size = strlen(input); unsigned long segmented_input_size = ceil(input_size / (double) WHY2_CHECKSUM_SEGMENT_SIZE) * WHY2_CHECKSUM_SEGMENT_SIZE; //CALCULATE CLOSEST 4*n TO input