1KCAPI_RNG_GENERATE(3) Programming Interface KCAPI_RNG_GENERATE(3)
2
3
4
6 kcapi_rng_generate - generate a random number
7
9 int32_t kcapi_rng_generate(struct kcapi_handle * handle,
10 uint8_t * buffer, uint32_t len);
11
13 handle
14 [in] cipher handle
15
16 buffer
17 [out] filled with the random number
18
19 len
20 [in] buffer length
21
23 return size of random number generated upon success; -EIO - data cannot
24 be obtained
25
27 Stephan Mueller <smueller@chronox.de>
28 Author.
29
31libkcapi Manual 1.1.4 February 2019 KCAPI_RNG_GENERATE(3)