[][src]Struct ctr::Ctr128

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> 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

impl<C> NewStreamCipher 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 from variable length key and nonce.

Create new stream cipher instance from variable length key and nonce.

impl<C> SyncStreamCipher 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> SyncStreamCipherSeek 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.

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

Encrypt data in place.

Decrypt data in place.

impl<T> Same for T

Should always be Self