[][src]Enum yaca::BlockCipherMode

pub enum BlockCipherMode {
    None,
    Ecb,
    Ctr,
    Cbc,
    Gcm,
    Cfb,
    Cfb1,
    Cfb8,
    Ofb,
    Ccm,
    Wrap,
}

Enumeration of YACA chaining modes for block ciphers

Variants

None

Used when algorithm doesn't support block ciphers modes.

  • Initialization Vector is not used.
Ecb

ECB block cipher mode.

  • Initialization Vector is not used.
  • By default the input data is padded using standard block padding PKCS7.
  • Padding can be disabled using CtxPad::set_property_padding() and Padding::None. The total length of data passed until *::finalize() must be a multiple of block size in such case.
  • In case of Encrypt/Seal Padding can be set at the latest before the *::finalize() call. In case of Decrypt/Open it can be set at the latest before the *::update() call.
Ctr

CTR block cipher mode

Cbc

CBC block cipher mode

  • 128-bit Initialization Vector for AES.
  • 64-bit for other algorithms is mandatory.
  • By default the input data is padded using standard block padding PKCS7.
  • Padding can be disabled using CtxPad::set_property_padding and Padding::None. The total length of data passed until *::finalize() must be a multiple of block size in such case.
  • In case of Encrypt/Seal Padding can be set at the latest before the *::finalize() call. In case of Decrypt/Open it can be set at the latest before the *::update() call.
Gcm

GCM block cipher mode

Cfb

Default CFB block cipher mode

Cfb1

1 bit CFB block cipher mode

Cfb8

8 bits CFB block cipher mode

Ofb

OFB block cipher mode

Ccm

CBC-MAC Mode (AES)

Wrap

Used with AES or 3DES_3TDEA to perform a key wrapping (key material symmetric encryption)

Trait Implementations

impl Debug for BlockCipherMode[src]

impl PartialEq<BlockCipherMode> for BlockCipherMode[src]

impl StructuralPartialEq for BlockCipherMode[src]

Auto Trait Implementations

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