pub struct StreamCipher(/* private fields */);
Expand description
A thin wrapper around a ChaCha20 stream cipher. This will use a zero nonce. NOTE: Great care must be taken not to encrypt different plaintext with the same key and offset (even across multiple boots), so consider if this suits your purpose before using it.
Implementations§
Auto Trait Implementations§
impl Freeze for StreamCipher
impl RefUnwindSafe for StreamCipher
impl Send for StreamCipher
impl Sync for StreamCipher
impl Unpin for StreamCipher
impl UnwindSafe for StreamCipher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more