pub struct Salsa<R: Rounds> { /* private fields */ }
Expand description
The Salsa20 family of stream ciphers (implemented generically over a number of rounds).
We recommend you use the Salsa20
(a.k.a. Salsa20/20) variant.
Trait Implementations
sourceimpl<R: Rounds> NewStreamCipher for Salsa<R>
impl<R: Rounds> NewStreamCipher for Salsa<R>
sourceimpl<R: Rounds> SyncStreamCipher for Salsa<R>
impl<R: Rounds> SyncStreamCipher for Salsa<R>
sourceimpl<R: Rounds> SyncStreamCipherSeek for Salsa<R>
impl<R: Rounds> SyncStreamCipherSeek for Salsa<R>
sourcefn try_current_pos<T: SeekNum>(&self) -> Result<T, OverflowError>
fn try_current_pos<T: SeekNum>(&self) -> Result<T, OverflowError>
Try to get current keystream position Read more
sourcefn try_seek<T: SeekNum>(&mut self, pos: T) -> Result<(), LoopError>
fn try_seek<T: SeekNum>(&mut self, pos: T) -> Result<(), LoopError>
Try to seek to the given position Read more
sourcefn current_pos<T>(&self) -> T where
T: SeekNum,
fn current_pos<T>(&self) -> T where
T: SeekNum,
Get current keystream position Read more
Auto Trait Implementations
impl<R> RefUnwindSafe for Salsa<R> where
R: RefUnwindSafe,
impl<R> Send for Salsa<R> where
R: Send,
impl<R> Sync for Salsa<R> where
R: Sync,
impl<R> Unpin for Salsa<R> where
R: Unpin,
impl<R> UnwindSafe for Salsa<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more