created mod & base primes macros
This commit is contained in:
parent
e0274ec6c1
commit
b50305f080
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user