Skip to main content

Module secretbuf

Module secretbuf 

Source
Expand description

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

Re-exportsยง

use crate::Writer; ๐Ÿ”’
use zeroize::Zeroize; ๐Ÿ”’
use zeroize::Zeroize; ๐Ÿ”’
use zeroize::ZeroizeOnDrop; ๐Ÿ”’
use zeroize::ZeroizeOnDrop; ๐Ÿ”’

Structsยง

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

Constantsยง

DEFAULT_CAPACITY ๐Ÿ”’
The default size of our buffer.