Struct gost_modes::GostCtr128[][src]

pub struct GostCtr128<C, S = <C as BlockCipher>::BlockSize> where
    C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
    C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
    S: ArrayLength<u8> + Unsigned + IsGreater<U0> + IsLessOrEqual<U16>, 
{ /* fields omitted */ }

Counter (CTR) mode of operation for 128-bit block ciphers as defined in GOST R 34.13-2015

Type parameters:

  • C: block cipher.
  • S: number of block bytes used for message encryption. Default: block size.

Trait Implementations

impl<C: Clone, S: Clone> Clone for GostCtr128<C, S> where
    C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
    C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
    S: ArrayLength<u8> + Unsigned + IsGreater<U0> + IsLessOrEqual<U16>, 
[src]

impl<C, S> FromBlockCipher for GostCtr128<C, S> where
    C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
    C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
    S: ArrayLength<u8> + Unsigned + IsGreater<U0> + IsLessOrEqual<U16>, 
[src]

type BlockCipher = C

Block cipher

type NonceSize = U8

Nonce size in bytes

impl<C, S> StreamCipher for GostCtr128<C, S> where
    C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
    C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
    S: ArrayLength<u8> + Unsigned + IsGreater<U0> + IsLessOrEqual<U16>, 
[src]

impl<C, S> StreamCipherSeek for GostCtr128<C, S> where
    C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
    C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
    S: ArrayLength<u8> + Unsigned + IsGreater<U0> + IsLessOrEqual<U16>, 
[src]

Auto Trait Implementations

impl<C, S> RefUnwindSafe for GostCtr128<C, S> where
    C: RefUnwindSafe,
    <S as ArrayLength<u8>>::ArrayType: RefUnwindSafe

impl<C, S> Send for GostCtr128<C, S> where
    C: Send

impl<C, S> Sync for GostCtr128<C, S> where
    C: Sync

impl<C, S> Unpin for GostCtr128<C, S> where
    C: Unpin,
    <S as ArrayLength<u8>>::ArrayType: Unpin

impl<C, S> UnwindSafe for GostCtr128<C, S> where
    C: UnwindSafe,
    <S as ArrayLength<u8>>::ArrayType: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.