[−][src]Struct openssl::symm::Cipher  
Represents a particular cipher algorithm.
See OpenSSL doc at EVP_EncryptInit for more information on each algorithms.
Methods
impl Cipher[src] 
impl Cipherpub fn from_nid(nid: Nid) -> Option<Cipher>[src] 
pub fn from_nid(nid: Nid) -> Option<Cipher>Looks up the cipher for a certain nid.
This corresponds to EVP_get_cipherbynid
pub fn aes_128_ecb() -> Cipher[src] 
pub fn aes_128_ecb() -> Cipherpub fn aes_128_cbc() -> Cipher[src] 
pub fn aes_128_cbc() -> Cipherpub fn aes_128_xts() -> Cipher[src] 
pub fn aes_128_xts() -> Cipherpub fn aes_128_ctr() -> Cipher[src] 
pub fn aes_128_ctr() -> Cipherpub fn aes_128_cfb1() -> Cipher[src] 
pub fn aes_128_cfb1() -> Cipherpub fn aes_128_cfb128() -> Cipher[src] 
pub fn aes_128_cfb128() -> Cipherpub fn aes_128_cfb8() -> Cipher[src] 
pub fn aes_128_cfb8() -> Cipherpub fn aes_128_gcm() -> Cipher[src] 
pub fn aes_128_gcm() -> Cipherpub fn aes_128_ccm() -> Cipher[src] 
pub fn aes_128_ccm() -> Cipherpub fn aes_256_ecb() -> Cipher[src] 
pub fn aes_256_ecb() -> Cipherpub fn aes_256_cbc() -> Cipher[src] 
pub fn aes_256_cbc() -> Cipherpub fn aes_256_xts() -> Cipher[src] 
pub fn aes_256_xts() -> Cipherpub fn aes_256_ctr() -> Cipher[src] 
pub fn aes_256_ctr() -> Cipherpub fn aes_256_cfb1() -> Cipher[src] 
pub fn aes_256_cfb1() -> Cipherpub fn aes_256_cfb128() -> Cipher[src] 
pub fn aes_256_cfb128() -> Cipherpub fn aes_256_cfb8() -> Cipher[src] 
pub fn aes_256_cfb8() -> Cipherpub fn aes_256_gcm() -> Cipher[src] 
pub fn aes_256_gcm() -> Cipherpub fn aes_256_ccm() -> Cipher[src] 
pub fn aes_256_ccm() -> Cipherpub fn bf_cbc() -> Cipher[src] 
pub fn bf_cbc() -> Cipherpub fn bf_ecb() -> Cipher[src] 
pub fn bf_ecb() -> Cipherpub fn bf_cfb64() -> Cipher[src] 
pub fn bf_cfb64() -> Cipherpub fn bf_ofb() -> Cipher[src] 
pub fn bf_ofb() -> Cipherpub fn des_cbc() -> Cipher[src] 
pub fn des_cbc() -> Cipherpub fn des_ecb() -> Cipher[src] 
pub fn des_ecb() -> Cipherpub fn des_ede3() -> Cipher[src] 
pub fn des_ede3() -> Cipherpub fn des_ede3_cbc() -> Cipher[src] 
pub fn des_ede3_cbc() -> Cipherpub fn rc4() -> Cipher[src] 
pub fn rc4() -> Cipherpub unsafe fn from_ptr(ptr: *const EVP_CIPHER) -> Cipher[src] 
pub unsafe fn from_ptr(ptr: *const EVP_CIPHER) -> Cipherpub fn as_ptr(&self) -> *const EVP_CIPHER[src] 
pub fn as_ptr(&self) -> *const EVP_CIPHERpub fn key_len(&self) -> usize[src] 
pub fn key_len(&self) -> usizeReturns the length of keys used with this cipher.
pub fn iv_len(&self) -> Option<usize>[src] 
pub 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.
pub fn block_size(&self) -> usize[src] 
pub fn block_size(&self) -> usizeTrait Implementations
impl Clone for Cipher[src] 
impl Clone for Cipherfn clone(&self) -> Cipher[src] 
fn clone(&self) -> CipherReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Cipher[src] 
impl Copy for Cipherimpl Sync for Cipher[src] 
impl Sync for Cipherimpl Eq for Cipher[src] 
impl Eq for Cipherimpl PartialEq<Cipher> for Cipher[src] 
impl PartialEq<Cipher> for Cipherfn eq(&self, other: &Cipher) -> bool[src] 
fn eq(&self, other: &Cipher) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Cipher) -> bool[src] 
fn ne(&self, other: &Cipher) -> boolThis method tests for !=.
impl Send for Cipher[src] 
impl Send for CipherBlanket Implementations
impl<T> From for T[src] 
impl<T> From for Timpl<T, U> Into for T where
    U: From<T>, [src] 
impl<T, U> Into for T where
    U: From<T>, impl<T> ToOwned for T where
    T: Clone, [src] 
impl<T> ToOwned for T where
    T: Clone, type Owned = T
fn to_owned(&self) -> T[src] 
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src] 
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API.  (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom for T where
    T: From<U>, [src] 
impl<T, U> TryFrom for T where
    T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src] 
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
    T: ?Sized, [src] 
impl<T> Borrow for T where
    T: ?Sized, impl<T> BorrowMut for T where
    T: ?Sized, [src] 
impl<T> BorrowMut for T where
    T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src] 
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
    U: TryFrom<T>, [src] 
impl<T, U> TryInto for T where
    U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src] 
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
    T: 'static + ?Sized, [src] 
impl<T> Any for T where
    T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src] 
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API.  (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more