kcapi_rng_generate - Man Page

generate a random number

Synopsis

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

Arguments

handle

[in] cipher handle

buffer

[out] filled with the random number

len

[in] buffer length

Description

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

Author

Stephan Mueller <smueller@chronox.de>

Author.

Info

August 2024 libkcapi Manual 1.5.0 Programming Interface