Struct gost_modes::GostCtr64[][src]

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

Counter (CTR) mode of operation for 64-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 GostCtr64<C, S> where
    C: BlockCipher<BlockSize = U8> + BlockEncrypt + NewBlockCipher,
    C::ParBlocks: ArrayLength<GenericArray<u8, U8>>,
    S: ArrayLength<u8> + Unsigned + IsGreater<U0> + IsLessOrEqual<U8>, 
[src]

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

type BlockCipher = C

Block cipher

type NonceSize = U4

Nonce size in bytes

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

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

Auto Trait Implementations

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

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

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

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

impl<C, S> UnwindSafe for GostCtr64<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.