Skip to content

Fork protection / reseeding / pub-priv generators #314

@dhardy

Description

@dhardy

Amazon's 2sn RNG uses three layers of protection to prevent leaking private-key values when forking a process and copying generators:

  1. Use extra entropy from RDRAND for each generated value
  2. Use two separate generators: one for public-keys and one for private-keys
  3. Use WIPEONFORK to force reseeding RNGs after process fork

We don't necessarily need to use all the same protections, but it would be good to use at least one.

Mentioned: dhardy#22 (comment)
Replaces: dhardy#59

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-help-wantedParticipation: help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions