HomePhabricator

Add RNG strengthening (10ms once every minute)

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

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Dec 17 2018, 23:50
FabienCommitted on May 19 2020, 15:37
FabienPushed on May 19 2020, 15:37
Reviewer
Restricted Project
Differential Revision
D6139: Add RNG strengthening (10ms once every minute)
Parents
rABC4de8d18b13e6: Add release notes
Branches
Unknown
Tags
Unknown