Struct octavo_crypto::block::blowfish::Blowfish [] [src]

pub struct Blowfish {
    // some fields omitted
}

Methods

impl Blowfish
[src]

fn new<T: AsRef<[u8]>>(key: T) -> Self

fn init() -> Self

Trait Implementations

impl BlockEncrypt for Blowfish
[src]

type BlockSize = U8

Single block size

fn encrypt_block<I, O>(&self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>

Encrypt single block of data

fn block_size() -> usize

Single block size

impl BlockDecrypt for Blowfish
[src]

type BlockSize = U8

Single block size

fn decrypt_block<I, O>(&self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>

Decrypt single block of data

fn block_size() -> usize

Single block size