1KCAPI_RNG_GET_BYTES(3) Programming Interface KCAPI_RNG_GET_BYTES(3)
2
3
4
6 kcapi_rng_get_bytes - Convenience function to generate random bytes
7
9 int32_t kcapi_rng_get_bytes(uint8_t * buffer, uint32_t outlen);
10
12 buffer
13 [out] filled with the random number
14
15 outlen
16 [in] buffer length
17
19 This convenience function generates random bytes of the size of outlen
20 and stores them into the provided buffer.
21
22 return size of random number generated upon success; -EIO - data cannot
23 be obtained
24
26 Stephan Mueller <smueller@chronox.de>
27 Author.
28
30libkcapi Manual 1.1.5 January 2020 KCAPI_RNG_GET_BYTES(3)