pub struct XSalsa20(_);
Expand description
XSalsa20 is a Salsa20 variant with an extended 192-bit (24-byte) nonce.
Based on the paper “Extending the Salsa20 Nonce”:
https://cr.yp.to/snuffle/xsalsa-20081128.pdf
The xsalsa20
Cargo feature must be enabled in order to use this
(which it is by default).
Trait Implementations
sourceimpl NewStreamCipher for XSalsa20
impl NewStreamCipher for XSalsa20
sourceimpl SyncStreamCipher for XSalsa20
impl SyncStreamCipher for XSalsa20
sourceimpl SyncStreamCipherSeek for XSalsa20
impl SyncStreamCipherSeek for XSalsa20
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 RefUnwindSafe for XSalsa20
impl Send for XSalsa20
impl Sync for XSalsa20
impl Unpin for XSalsa20
impl UnwindSafe for XSalsa20
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