Maintain state across GetStrongRandBytes calls #10338

pull sipa wants to merge 1 commits into bitcoin:master from sipa:stateful_rng changing 1 files +16 −1
  1. sipa commented at 5:18 pm on May 4, 2017: member

    This adds a 32-byte entropy pool that is maintained across calls to GetStrongRandomBytes(). As we’re already using SHA512 to combine the multiple entropy sources, which produces 64 bytes, we can use the last 32 of those as an additional input for the next call.

    This makes sure that the produced data is secure as long as any entropy source in the past was reliable.

    The entropy pool is initialized with zeroes (but not used before any OS and OpenSSL entropy are fed into it). In the future a more extensive seeding operation can be used to build the initial pool.

  2. Maintain state across GetStrongRandBytes calls 97477c537e
  3. theuni commented at 6:04 pm on May 4, 2017: member
    utACK 97477c537e9e9d9b9a14ec2f965c9c6121ac818b
  4. TheBlueMatt commented at 8:11 pm on May 4, 2017: member
    utACK 97477c537e9e9d9b9a14ec2f965c9c6121ac818b Nice!
  5. dcousens approved
  6. dcousens commented at 0:15 am on May 5, 2017: contributor
    utACK
  7. sipa merged this on May 9, 2017
  8. sipa closed this on May 9, 2017

  9. sipa referenced this in commit daf3e7def7 on May 9, 2017
  10. sipa deleted the branch on Jun 23, 2017
  11. PastaPastaPasta referenced this in commit c3e469db0f on Jun 10, 2019
  12. PastaPastaPasta referenced this in commit 7105479ecd on Jun 10, 2019
  13. PastaPastaPasta referenced this in commit d405bafed3 on Jun 10, 2019
  14. PastaPastaPasta referenced this in commit 46f441a348 on Jun 11, 2019
  15. PastaPastaPasta referenced this in commit c8170b7c07 on Jun 11, 2019
  16. PastaPastaPasta referenced this in commit ab2f246879 on Jun 15, 2019
  17. PastaPastaPasta referenced this in commit b22710fd29 on Jun 19, 2019
  18. PastaPastaPasta referenced this in commit 3c9f09c466 on Jun 19, 2019
  19. PastaPastaPasta referenced this in commit 7d7ea88265 on Jun 19, 2019
  20. PastaPastaPasta referenced this in commit cb63f61a1d on Jun 19, 2019
  21. PastaPastaPasta referenced this in commit 31d8293596 on Jun 19, 2019
  22. PastaPastaPasta referenced this in commit 31cc65c2ed on Jun 19, 2019
  23. PastaPastaPasta referenced this in commit 2075410963 on Jun 19, 2019
  24. PastaPastaPasta referenced this in commit 42b43c327a on Jun 20, 2019
  25. barrystyle referenced this in commit 67d8f516eb on Jan 22, 2020
  26. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me