class EntropyHandoff
Defined at line 24 of file ../../zircon/kernel/phys/handoff-entropy.h
Thin wrapper for the handoff process of entropy related items and options.
This involves policies regarding entropy consumption and boot requirements.
Public Methods
void AddEntropy (ktl::span<ktl::byte> payload)
Adds |payload| to the underlying entropy pool.
Entropy is redacted with an arbitrary value.
Defined at line 25 of file ../../zircon/kernel/phys/handoff-entropy.cc
void EntropyHandoff ()
Defined at line 29 of file ../../zircon/kernel/phys/handoff-entropy.h
void EntropyHandoff (FILE * log)
Defined at line 30 of file ../../zircon/kernel/phys/handoff-entropy.h
bool HasEnoughEntropy ()
Return true, if the entropy handoff collected enough entropy to successfully produce
an |EntropyPool|.
Defined at line 42 of file ../../zircon/kernel/phys/handoff-entropy.h
void AddEntropy (BootOptions & options)
Adds entropy provided through |options| to the underlying entropy pool.
Entropy is redacted with an arbitrary value.
Defined at line 43 of file ../../zircon/kernel/phys/handoff-entropy.cc
ktl::optional<crypto::EntropyPool> Take (const BootOptions & options)
If enough entropy was collected and all boot options requirements are met, an entropy
pool with the collected entropy is returned.
If the conditions are not met, the program is aborted.
Defined at line 66 of file ../../zircon/kernel/phys/handoff-entropy.cc