Struct salsa20::Salsa [−][src]
pub struct Salsa<R: Rounds> { /* fields omitted */ }
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
impl<R: Rounds> NewCipher for Salsa<R>
[src]
impl<R: Rounds> NewCipher for Salsa<R>
[src]type KeySize = U32
Key size in bytes
type NonceSize = U8
Nonce size in bytes
fn new(key: &Key, nonce: &Nonce) -> Self
[src]
pub fn new_from_slices(key: &[u8], nonce: &[u8]) -> Result<Self, InvalidLength>
[src]
impl<R: Rounds> StreamCipher for Salsa<R>
[src]
impl<R: Rounds> StreamCipher for Salsa<R>
[src]fn try_apply_keystream(&mut self, data: &mut [u8]) -> Result<(), LoopError>
[src]
pub fn apply_keystream(&mut self, data: &mut [u8])
[src]
impl<R: Rounds> StreamCipherSeek for Salsa<R>
[src]
impl<R: Rounds> StreamCipherSeek for Salsa<R>
[src]