Skip to content

Memory isn't zeroed #3

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(...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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