summaryrefslogtreecommitdiff
path: root/crates/tor-bytes/src/secretbuf.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix some rustdoc errors.Nick Mathewson2022-10-131-1/+1
| | | | | | In addition to the usual "You named that method wrong!" errors, we have a new rustdoc error that complains about bogus "HTML tags" that are actually unquoted usage of types like `Result<Foo>`.
* 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.