Page MenuHomePhabricator

Add RNG strengthening (10ms once every minute)
ClosedPublic

Authored by Fabien on May 19 2020, 13:37.

Details

Summary
This patch improves the built-in RNG using hash strengthening.

At startup, and once every minute, 32 bytes of entropy are produced from
the RNG, repeatedly hashed using SHA512 for 10ms, and then fed back into
the RNG, together with high-precision timestamps obtained every 1000
iterations.

Backport of core PR15224.

Test Plan
ninja all check-all

Event Timeline

Fabien requested review of this revision.May 19 2020, 13:37

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/random.h
52 ↗(On Diff #20269)

There is a line break missing between the two sentences.

This revision is now accepted and ready to land.May 19 2020, 14:58
This revision was landed with ongoing or failed builds.May 19 2020, 15:37
This revision was automatically updated to reflect the committed changes.