Struct crypto::blowfish::Blowfish [-] [+] [src]

pub struct Blowfish {
    // some fields omitted
}

Methods

impl Blowfish

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

fn init_state() -> Blowfish

fn expand_key(&mut self, key: &[u8])

fn salted_expand_key(&mut self, salt: &[u8], key: &[u8])

fn encrypt(&self, l: u32, r: u32) -> (u32, u32)

Trait Implementations

impl BlockEncryptor for Blowfish

fn block_size(&self) -> usize

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

impl BlockDecryptor for Blowfish

fn block_size(&self) -> usize

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

Derived Implementations

impl Copy for Blowfish