Enum openssl::crypto::symm::Type [] [src]

pub enum Type {
    AES_128_ECB,
    AES_128_CBC,
    AES_128_XTS,
    AES_128_CTR,
    AES_128_CFB1,
    AES_128_CFB128,
    AES_128_CFB8,
    AES_256_ECB,
    AES_256_CBC,
    AES_256_XTS,
    AES_256_CTR,
    AES_256_CFB1,
    AES_256_CFB128,
    AES_256_CFB8,
    DES_CBC,
    DES_ECB,
    RC4_128,
}

Variants

AES_128_ECB
AES_128_CBC
AES_128_XTS

Requires the aes_xts feature

AES_128_CTR
AES_128_CFB1
AES_128_CFB128
AES_128_CFB8
AES_256_ECB
AES_256_CBC
AES_256_XTS

Requires the aes_xts feature

AES_256_CTR
AES_256_CFB1
AES_256_CFB128
AES_256_CFB8
DES_CBC
DES_ECB
RC4_128

Methods

impl Type
[src]

fn as_ptr(&self) -> *const EVP_CIPHER

fn key_len(&self) -> usize

Returns the length of keys used with this cipher.

fn iv_len(&self) -> Option<usize>

Returns the length of the IV used with this cipher, or None if the cipher does not use an IV.

fn block_size(&self) -> usize

Returns the block size of the cipher.

Note

Stream ciphers such as RC4 have a block size of 1.

Trait Implementations

Derived Implementations

impl Clone for Type
[src]

fn clone(&self) -> Type

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Type
[src]