Module secretbuf

Source
Expand description

Define a wrapper for Vec<u8> that will act as Writer, but zeroize its contents on drop or reallocation.

Structs§

SecretBuf
A Writer used for accumulating secret data, which gets cleared on drop.

Constants§

DEFAULT_CAPACITY 🔒
The default size of our buffer.