Enum shadowsocks::crypto::cipher::CipherType [] [src]

pub enum CipherType {
    Table,
    Dummy,
    Aes128Cfb,
    Aes128Cfb1,
    Aes128Cfb8,
    Aes128Cfb128,
    Aes256Cfb,
    Aes256Cfb1,
    Aes256Cfb8,
    Aes256Cfb128,
    Rc4,
    Rc4Md5,
    ChaCha20,
    Salsa20,
    Aes128Gcm,
    Aes192Gcm,
    Aes256Gcm,
}

ShadowSocks cipher type

Variants

Methods

impl CipherType
[src]

Symmetric crypto key size

Extends key to match the required key length

Symmetric crypto initialize vector size

Generate a random initialize vector for this cipher

Get category of cipher

Get tag size for AEAD Ciphers

Get nonce size for AEAD ciphers

Get salt for AEAD ciphers

Trait Implementations

impl Clone for CipherType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CipherType
[src]

Formats the value using the given formatter.

impl Copy for CipherType
[src]

impl FromStr for CipherType
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for CipherType
[src]

Formats the value using the given formatter. Read more