created mod & base primes macros

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

View File

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