Lines Matching refs:random

203 …o have entry points related to random generation. A transparent driver can provide a [random gener…
833 …ication in an operating system and `"get_entropy"` returns data from the random generator in the o…
916 …de an operation family that can be used as a cryptographic random number generator. The random gen…
918random output must be of cryptographic quality, with a uniform distribution. Therefore, if the ran…
919 …d to be fast. (If a device can provide entropy but is slow at generating random data, declare it a…
920random generator should be able to incorporate entropy provided by an outside source. If it isn't,…
921random generator may either be deterministic (in the sense that it always returns the same data wh…
923 If no driver implements the random generation entry point family, the core provides an unspecified
927 * Type `"random_context_t"`: the type of a random generation context.
928 …point, optional): if this function is present, [the core calls it once](#random-generator-initiali…
929 …ncludes an entropy source of its own, however [random generator drivers without entropy injection]…
930 …t, mandatory): the core calls this function whenever it needs to [obtain random data](#the-get_ran…
931 … bytes of entropy that the core must supply before the driver can output random data. This can be …
944 The core calls this entry point once after allocating a random generation context. Initially, the c…
960 * `context`: a random generation context. On the first call to `"add_entropy"`, this object has bee…
961 * `entropy`: a buffer containing full-entropy data to seed the random generator. “Full-entropy” mea…
962 …y be smaller than the amount of entropy that the driver needs to deliver random data, in which cas…
964 …e driver requires, to ensure that all entropy sources are mixed into the random generator state. T…
969 * After a call to the `"get_random"` entry point returns less than the required amount of random da…
973 #### Combining entropy sources with a random generation driver
975 …llection-entry-point) (each having a `"get_entropy"` entry point) with a random generation driver …
979 …{entropy_size}$ is the desired amount of entropy in bytes (typically the random driver's `"initial…
985random generator depends on all the entropy sources that are available on the platform. A driver w…
990 * the core saves random data in persistent storage to be preserved across platform resets.
1005 * `context`: a random generation context. If the driver's `"initial_entropy_size"` property is nonz…
1006 …irst `*output_length` bytes of this buffer contain cryptographic-quality random data. The output i…
1008 * `*output_length`: on success (including partial success), the number of bytes of random data that…
1012 …`output` buffer contains `*output_length` bytes of cryptographic-quality random data. Note that th…
1014 …A_ERROR_NOT_SUPPORTED`: the random generator is not available. This is only permitted if the drive…
1424 …ut in advance, because it depends on some complex calculation or even on random data, e.g. if doin…
1448 May the core instantiate a random generation context more than once? In other words, can there be m…