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(...)
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:
r)user_input)h)seedthat holds a copy ofh(digest is only a pointer as far as I can tell)rng, the ChaChaRng that is created from that seedkeypair(...)andAccumulator::transform(...)