crypto_rng_reset — re-initialize the RNG
int crypto_rng_reset ( | struct crypto_rng * tfm, |
u8 * seed, | |
unsigned int slen) ; |
The reset function completely re-initializes the random number generator referenced by the cipher handle by clearing the current state. The new state is initialized with the caller provided seed or automatically, depending on the random number generator type (the ANSI X9.31 RNG requires caller-provided seed, the SP800-90A DRBGs perform an automatic seeding). The seed is provided as a parameter to this function call. The provided seed should have the length of the seed size defined for the random number generator as defined by crypto_rng_seedsize.