Enum shadowsocks::crypto::stream::StreamCipherVariant
[−]
[src]
pub enum StreamCipherVariant {
TableCipher(TableCipher),
DummyCipher(DummyCipher),
Rc4Md5Cipher(Rc4Md5Cipher),
OpenSSLCipher(OpenSSLCipher),
CryptoCipher(CryptoCipher),
}Variant cipher which contains all possible ciphers
Variants
TableCipher(TableCipher)DummyCipher(DummyCipher)Rc4Md5Cipher(Rc4Md5Cipher)OpenSSLCipher(OpenSSLCipher)CryptoCipher(CryptoCipher)Methods
impl StreamCipherVariant[src]
fn new<C>(cipher: C) -> StreamCipherVariant where
StreamCipherVariant: From<C>,
StreamCipherVariant: From<C>,
Creates from an actual cipher
Trait Implementations
impl StreamCipher for StreamCipherVariant[src]
fn update<B: BufMut>(&mut self, data: &[u8], out: &mut B) -> CipherResult<()>
fn finalize<B: BufMut>(&mut self, out: &mut B) -> CipherResult<()>
fn buffer_size(&self, data: &[u8]) -> usize
impl From<TableCipher> for StreamCipherVariant[src]
fn from(cipher: TableCipher) -> StreamCipherVariant
Performs the conversion.
impl From<DummyCipher> for StreamCipherVariant[src]
fn from(cipher: DummyCipher) -> StreamCipherVariant
Performs the conversion.
impl From<Rc4Md5Cipher> for StreamCipherVariant[src]
fn from(cipher: Rc4Md5Cipher) -> StreamCipherVariant
Performs the conversion.
impl From<OpenSSLCipher> for StreamCipherVariant[src]
fn from(cipher: OpenSSLCipher) -> StreamCipherVariant
Performs the conversion.
impl From<CryptoCipher> for StreamCipherVariant[src]
fn from(cipher: CryptoCipher) -> StreamCipherVariant
Performs the conversion.