KCAPI_RNG_SEED(3) | Programming Interface | KCAPI_RNG_SEED(3) |
kcapi_rng_seed - seed the RNG
int kcapi_rng_seed(struct kcapi_handle * handle, uint8_t * seed, uint32_t seedlen);
handle
seed
seedlen
Note, this call must be called to initialize the selected RNG. When the SP800-90A DRBG is used, this call causes the DRBG to seed itself from the internal noise sources.
Note, in case of using the SP800-90A DRBG, the seed buffer may be NULL. If it is not NULL, the DRBG uses the given data either as personalization string in case of the initial seeding or additional data for reseeding.
return 0 upon success; a negative errno-style error code if an error occurred
Stephan Mueller <smueller@chronox.de>
February 2022 | libkcapi Manual 1.4.0 |