Struct ctr::Ctr128[][src]

pub struct Ctr128<C> where
    C: BlockCipher<BlockSize = U16>,
    C::ParBlocks: ArrayLength<GenArr<u8, U16>>, 
{ /* fields omitted */ }

CTR mode of operation for 128-bit block ciphers

Trait Implementations

impl<C> NewFixStreamCipher for Ctr128<C> where
    C: BlockCipher<BlockSize = U16>,
    C::ParBlocks: ArrayLength<GenArr<u8, U16>>, 
[src]

Key size in bytes

Nonce size in bytes

Create new stream cipher instance

impl<C> StreamCipherCore for Ctr128<C> where
    C: BlockCipher<BlockSize = U16>,
    C::ParBlocks: ArrayLength<GenArr<u8, U16>>, 
[src]

Apply keystream to the data, but return an error if end of a keystream will be reached. Read more

Apply keystream to the data. Read more

impl<C> StreamCipherSeek for Ctr128<C> where
    C: BlockCipher<BlockSize = U16>,
    C::ParBlocks: ArrayLength<GenArr<u8, U16>>, 
[src]

Return current position of a keystream in bytes from the beginning.

Seek keystream to the given pos in bytes.

impl<C> Debug for Ctr128<C> where
    C: BlockCipher<BlockSize = U16>,
    C::ParBlocks: ArrayLength<GenArr<u8, U16>>, 
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<C> Send for Ctr128<C> where
    C: Send

impl<C> Sync for Ctr128<C> where
    C: Sync