Struct ctr::Ctr128

source · []
pub struct Ctr128<C> where
    C: BlockCipher<BlockSize = U16>,
    C::ParBlocks: ArrayLength<GenericArray<u8, U16>>, 
{ /* private fields */ }
Expand description

CTR mode of operation for 128-bit block ciphers

Implementations

Create new CTR mode instance using initialized block cipher.

Trait Implementations

Formats the value using the given formatter. Read more

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.

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

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

Seek keystream to the given pos in bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Encrypt data in place.

Decrypt data in place.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.