other versions
- stretch 4.9.168-1
CRYPTO_RNG_GET_BYTES(9) | Programming Interface | CRYPTO_RNG_GET_BYTES(9) |
NAME¶
crypto_rng_get_bytes - get random numberSYNOPSIS¶
int crypto_rng_get_bytes(struct crypto_rng * tfm, u8 * rdata, unsigned int dlen);
ARGUMENTS¶
tfmcipher handle
rdata
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 occurredAUTHORS¶
Stephan Mueller <smueller@chronox.de>Author.
Marek Vasut <marek@denx.de>
Author.
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |