Struct crypto::rc4::Rc4 [-] [+] [src]

pub struct Rc4 {
    // some fields omitted
}

Methods

impl Rc4

fn new(key: &[u8]) -> Rc4

Trait Implementations

impl SynchronousStreamCipher for Rc4

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

impl Encryptor for Rc4

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

impl Decryptor for Rc4

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

Derived Implementations

impl Copy for Rc4