kcapi_rng_get_bytes - Man Page

Convenience function to generate random bytes

Synopsis

int32_t kcapi_rng_get_bytes(uint8_t * buffer, uint32_t outlen);

Arguments

buffer

[out] filled with the random number

outlen

[in] buffer length

Description

This convenience function generates random bytes of the size of outlen and stores them into the provided buffer.

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

Author

Stephan Mueller <smueller@chronox.de>

Author.

Info

August 2020 libkcapi Manual 1.2.0 Programming Interface