diff options
| author | Michael Brown | 2015-04-14 18:53:13 +0200 |
|---|---|---|
| committer | Michael Brown | 2015-04-14 18:53:13 +0200 |
| commit | 7ca801d637de3e2941f02f376ee1f0e26eabdfcb (patch) | |
| tree | d145554705718f0598a96ae837fa35561089396a /src/include/ipxe/parseopt.h | |
| parent | [efi] Poll for TX completions only when there is an outstanding TX buffer (diff) | |
| download | ipxe-7ca801d637de3e2941f02f376ee1f0e26eabdfcb.tar.gz ipxe-7ca801d637de3e2941f02f376ee1f0e26eabdfcb.tar.xz ipxe-7ca801d637de3e2941f02f376ee1f0e26eabdfcb.zip | |
[efi] Use the EFI_RNG_PROTOCOL as an entropy source if available
Entropy gathering via timer ticks is slow under UEFI (of the order of
20-30 seconds on some machines). Use the EFI_RNG_PROTOCOL if
available, to speed up the process of entropy gathering.
Note that some implementations (including EDK2) will fail if we
request fewer than 32 random bytes at a time, and that the RNG
protocol provides no guarantees about the amount of entropy provided
by a call to GetRNG(). We take the (hopefully pessimistic) view that
a 32-byte block returned by GetRNG() will contain at least the 1.3
bits of entropy claimed by min_entropy_per_sample().
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/parseopt.h')
0 files changed, 0 insertions, 0 deletions
