HomePhabricator

Add RNG strengthening (10ms once every minute)

Authored by Pieter Wuille <pieter.wuille@gmail.com> on Dec 17 2018, 23:50.

Description

Add RNG strengthening (10ms once every minute)

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

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D6139

Details

Committed
FabienMay 19 2020, 15:37
Pushed
abc-botMay 19 2020, 15:40
Reviewer
Restricted Project
Differential Revision
D6139: Add RNG strengthening (10ms once every minute)
Parents
rSTAGING4de8d18b13e6: Add release notes
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/20311