[][src]Trait gost_modes::StreamCipher

pub trait StreamCipher {
    fn encrypt(&mut self, data: &mut [u8]);
fn decrypt(&mut self, data: &mut [u8]); }

Stream cipher core trait which covers both synchronous and asynchronous ciphers.

Note that for synchronous ciphers encrypt and decrypt are equivalent to each other.

Required methods

fn encrypt(&mut self, data: &mut [u8])

Encrypt data in place.

fn decrypt(&mut self, data: &mut [u8])

Decrypt data in place.

Loading content...

Implementors

impl<C> StreamCipher for C where
    C: SyncStreamCipher
[src]

impl<C, M, S> StreamCipher for GostCfb<C, M, S> where
    C: BlockCipher + NewBlockCipher,
    C::BlockSize: IsLessOrEqual<U255>,
    M: Unsigned + ArrayLength<u8> + IsGreaterOrEqual<C::BlockSize> + Sub<C::BlockSize>,
    S: Unsigned + ArrayLength<u8> + IsGreater<U0> + IsLessOrEqual<C::BlockSize>,
    Diff<M, C::BlockSize>: ArrayLength<u8>, 
[src]

Loading content...