Skip to content

Memory isn't zeroed #3

@kpcyrd

Description

@kpcyrd

I'm having trouble locating the code that zeroes memory containing the seed that is is computed in src/bin/compute.rs.

As far as I can tell the following bytes need to be zeroed so the value isn't leaked after the program terminates:

  • the private key
  • bytes gathered from OsRng (r)
  • the text entered by the user (user_input)
  • the hash computed from the previous two (h)
  • the buffer seed that holds a copy of h (digest is only a pointer as far as I can tell)
  • rng, the ChaChaRng that is created from that seed
  • possibly some temporary variables in keypair(...) and Accumulator::transform(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions