DOKK / manpages / debian 12 / libkcapi-dev / kcapi_rng_generate.3.en
KCAPI_RNG_GENERATE(3) Programming Interface KCAPI_RNG_GENERATE(3)

kcapi_rng_generate - generate a random number

ssize_t kcapi_rng_generate(struct kcapi_handle * handle, uint8_t * buffer, size_t len);

handle

[in] cipher handle

buffer

[out] filled with the random number

len

[in] buffer length

return size of random number generated upon success; -EIO - data cannot be obtained

Stephan Mueller <smueller@chronox.de>

Author.

February 2022 libkcapi Manual 1.4.0