summaryrefslogtreecommitdiffstats
path: root/src/include/cpu.h
diff options
context:
space:
mode:
authorMichael Brown2015-04-14 18:53:13 +0200
committerMichael Brown2015-04-14 18:53:13 +0200
commit7ca801d637de3e2941f02f376ee1f0e26eabdfcb (patch)
treed145554705718f0598a96ae837fa35561089396a /src/include/cpu.h
parent[efi] Poll for TX completions only when there is an outstanding TX buffer (diff)
downloadipxe-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/cpu.h')
0 files changed, 0 insertions, 0 deletions