1KCAPI_RNG_GET_BYTES(3)       Programming Interface      KCAPI_RNG_GET_BYTES(3)
2
3
4

NAME

6       kcapi_rng_get_bytes - Convenience function to generate random bytes
7

SYNOPSIS

9       int32_t kcapi_rng_get_bytes(uint8_t * buffer, uint32_t outlen);
10

ARGUMENTS

12       buffer
13           [out] filled with the random number
14
15       outlen
16           [in] buffer length
17

DESCRIPTION

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

AUTHOR

26       Stephan Mueller <smueller@chronox.de>
27           Author.
28
30libkcapi Manual 1.1.1             August 2018           KCAPI_RNG_GET_BYTES(3)
Impressum