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 created this revision.May 19 2020, 13:37
Herald added a reviewer: Restricted Project. · View Herald TranscriptMay 19 2020, 13:37
Fabien requested review of this revision.May 19 2020, 13:37
teamcity edited the summary of this revision. (Show Details)May 19 2020, 13:38

[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 accepted this revision.May 19 2020, 14:58
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/random.h
52

There is a line break missing between the two sentences.

This revision is now accepted and ready to land.May 19 2020, 14:58
Fabien updated this revision to Diff 20277.May 19 2020, 15:36

Newline in comment

This revision was landed with ongoing or failed builds.May 19 2020, 15:37
This revision was automatically updated to reflect the committed changes.