summaryrefslogtreecommitdiff
path: root/crates/tor-bytes/src/secretbuf.rs
Commit message (Collapse)AuthorAgeFilesLines
* New SecretBuf type in tor-bytesNick Mathewson2022-08-011-0/+123
This Writer is a simple wrapper around `Vec<u8>` that makes sure that its contents are cleared whenever they are dropped _or reallocated_. The reallocation is the important part here: without that, we risk not zeroizing the first allocation of the buffer.