HomeFreeBSD

random: Add PowerPC 'darn' instruction entropy source

Description

random: Add PowerPC 'darn' instruction entropy source

Summary:
PowerISA 3.0 adds a 'darn' instruction to "deliver a random number". This
driver was modeled after (rather, copied and gutted of) the Ivy Bridge
rdrand driver.

This uses the "Conditional Random Number" behavior to remove input bias.

From the ISA reference the 'darn' instruction, and the random number
generator backing it, conforms to the NIST SP800-90B and SP800-90C
standards, compliant to the extent possible at the time the hardware was
designed, and guarantees a minimum 0.5 bits of entropy per bit returned.

Reviewed By: markm, secteam (delphij)
Approved by: secteam (delphij)
Differential Revision: https://reviews.freebsd.org/D16552

Details

Provenance
jhibbitsAuthored on
Reviewer
markm
Differential Revision
D16552: random: Add PowerPC 'darn' instruction entropy source
Parents
rS337952: subr_prf: Don't write kern.boot_tag if it's empty
Branches
Unknown
Tags
Unknown