incread segment_size to 32

This commit is contained in:
Václav Šmejkal 2024-11-20 16:23:14 +01:00
parent c0e9381642
commit e0274ec6c1
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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
}