Struct crypto::salsa20::Salsa20 [-] [+] [src]

pub struct Salsa20 {
    // some fields omitted
}

Methods

impl Salsa20

fn new(key: &[u8], nonce: &[u8]) -> Salsa20

fn new_xsalsa20(key: &[u8], nonce: &[u8]) -> Salsa20

Trait Implementations

impl SynchronousStreamCipher for Salsa20

fn process(&mut self, input: &[u8], output: &mut [u8])

impl Encryptor for Salsa20

fn encrypt(&mut self, input: &mut RefReadBuffer, output: &mut RefWriteBuffer, _: bool) -> Result<BufferResult, SymmetricCipherError>

impl Decryptor for Salsa20

fn decrypt(&mut self, input: &mut RefReadBuffer, output: &mut RefWriteBuffer, _: bool) -> Result<BufferResult, SymmetricCipherError>

Derived Implementations

impl Copy for Salsa20