[][src]Enum yaca::EncryptAlgorithm

pub enum EncryptAlgorithm {
    Aes,
    UnsafeDes,
    UnsafeTrippleDes2Tdea,
    TrippleDes3Tdea,
    UnsafeRc2,
    UnsafeRc4,
    Cast5,
}

Enumeration of YACA symmetric encryption algorithms

Variants

Aes

AES encryption

UnsafeDes

DES encryption (unsafe)

UnsafeTrippleDes2Tdea

3DES 2-key encryption (unsafe)

  • Supported key lengths: 128 bits.
  • Supported block cipher modes:
  • See BlockCipherMode for details on additional properties (mandatory).
  • Use double DES keys to perform corresponding 2-key 3DES encryption.
TrippleDes3Tdea

3DES 3-key encryption

  • Supported key lengths: 192 bits.
  • Supported block cipher modes:
  • See BlockCipherMode for details on additional properties (mandatory).
  • Use triple DES keys to perform corresponding 3-key 3DES encryption.
UnsafeRc2

RC2 encryption (unsafe)

UnsafeRc4

RC4 encryption (unsafe)

  • This is a variable key length cipher.
  • Supported key lengths: 40–2048 bits in steps of 8 bits.
  • Initialization Vector is not used.
  • This cipher doesn't support block cipher modes, use BlockCipherMode::None instead.
Cast5

CAST5 encryption

  • This is a variable key length cipher.
  • Supported key lengths: 40-128 bits in steps of 8 bits.
  • Supported block cipher modes:
  • See BlockCipherMode for details on additional properties (mandatory).

Trait Implementations

impl Debug for EncryptAlgorithm[src]

impl PartialEq<EncryptAlgorithm> for EncryptAlgorithm[src]

impl StructuralPartialEq for EncryptAlgorithm[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.