declared seeded-rand fns in crypto

This commit is contained in:
Václav Šmejkal 2025-01-10 17:54:27 +01:00
parent 3afe9f0d4c
commit 25113dc0b3
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -36,6 +36,8 @@ extern "C" {
//FUNCTIONS //FUNCTIONS
unsigned long long why2_sum_segment(char *input); //CALCULATE SUM++ FOR input; USED FOR PADDING SEED unsigned long long why2_sum_segment(char *input); //CALCULATE SUM++ FOR input; USED FOR PADDING SEED
ssize_t why2_random(void *dest, size_t size); //WRITE CRYPTO-SECURE RANDOM NUMBER INTO dest ssize_t why2_random(void *dest, size_t size); //WRITE CRYPTO-SECURE RANDOM NUMBER INTO dest
void why2_seed_random(unsigned int seed); //SEED why2_seeded_random OUTPUT
int why2_seeded_random(); //GENERATE RANDOM NUMBER BASED ON SEED PASSED IN why2_seed_random
#ifdef __cplusplus #ifdef __cplusplus
} }