[−][src]Enum shadowsocks::crypto::cipher::CipherType
ShadowSocks cipher type
Variants
Implementations
impl CipherType
[src]
pub fn key_size(self) -> usize
[src]
Symmetric crypto key size
pub fn bytes_to_key(self, key: &[u8]) -> Bytes
[src]
Extends key to match the required key length
pub fn iv_size(self) -> usize
[src]
Symmetric crypto initialize vector size
pub fn gen_init_vec(self) -> Bytes
[src]
Generate a random initialize vector for this cipher
pub fn category(self) -> CipherCategory
[src]
Get category of cipher
pub fn tag_size(self) -> usize
[src]
Get tag size for AEAD Ciphers
pub fn salt_size(self) -> usize
[src]
Get nonce size for AEAD ciphers
pub fn gen_salt(self) -> Bytes
[src]
Get salt for AEAD ciphers
pub fn available_ciphers() -> Vec<&'static str>
[src]
Get all available ciphers in String representation
pub fn name(self) -> &'static str
[src]
Name of cipher
Trait Implementations
impl Clone for CipherType
[src]
fn clone(&self) -> CipherType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CipherType
[src]
impl Debug for CipherType
[src]
impl Display for CipherType
[src]
impl FromStr for CipherType
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<CipherType, Error>
[src]
impl IntoEnumIterator for CipherType
[src]
type Iterator = CipherTypeIter
fn iter() -> CipherTypeIterⓘNotable traits for CipherTypeIter
impl Iterator for CipherTypeIter type Item = CipherType;
[src]
Notable traits for CipherTypeIter
impl Iterator for CipherTypeIter type Item = CipherType;
Auto Trait Implementations
impl RefUnwindSafe for CipherType
impl Send for CipherType
impl Sync for CipherType
impl Unpin for CipherType
impl UnwindSafe for CipherType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,