crypto_rng_generate (9) Linux Manual Page
crypto_rng_generate – get random number
Synopsis
int crypto_rng_generate(struct crypto_rng *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int dlen);
Arguments
tfm
-
- cipher handle
src
- Input buffer holding additional data, may be NULL
slen
- Length of additional data
dst
- output buffer holding the random numbers
dlen
- length of the output buffer
Description
This function fills the caller-allocated buffer with random numbers using the random number generator referenced by the cipher handle.
Return
0 function was successful; < 0 if an error occurred
Authors
Stephan Mueller <smueller [at] chronox.de>
- Author.
Marek Vasut <marek [at] denx.de>
- Author.
