[−][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 Cipher
pub 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() -> Cipher
pub fn aes_128_cbc() -> Cipher
[src]
pub fn aes_128_cbc() -> Cipher
pub fn aes_128_xts() -> Cipher
[src]
pub fn aes_128_xts() -> Cipher
pub fn aes_128_ctr() -> Cipher
[src]
pub fn aes_128_ctr() -> Cipher
pub fn aes_128_cfb1() -> Cipher
[src]
pub fn aes_128_cfb1() -> Cipher
pub fn aes_128_cfb128() -> Cipher
[src]
pub fn aes_128_cfb128() -> Cipher
pub fn aes_128_cfb8() -> Cipher
[src]
pub fn aes_128_cfb8() -> Cipher
pub fn aes_128_gcm() -> Cipher
[src]
pub fn aes_128_gcm() -> Cipher
pub fn aes_128_ccm() -> Cipher
[src]
pub fn aes_128_ccm() -> Cipher
pub fn aes_256_ecb() -> Cipher
[src]
pub fn aes_256_ecb() -> Cipher
pub fn aes_256_cbc() -> Cipher
[src]
pub fn aes_256_cbc() -> Cipher
pub fn aes_256_xts() -> Cipher
[src]
pub fn aes_256_xts() -> Cipher
pub fn aes_256_ctr() -> Cipher
[src]
pub fn aes_256_ctr() -> Cipher
pub fn aes_256_cfb1() -> Cipher
[src]
pub fn aes_256_cfb1() -> Cipher
pub fn aes_256_cfb128() -> Cipher
[src]
pub fn aes_256_cfb128() -> Cipher
pub fn aes_256_cfb8() -> Cipher
[src]
pub fn aes_256_cfb8() -> Cipher
pub fn aes_256_gcm() -> Cipher
[src]
pub fn aes_256_gcm() -> Cipher
pub fn aes_256_ccm() -> Cipher
[src]
pub fn aes_256_ccm() -> Cipher
pub fn bf_cbc() -> Cipher
[src]
pub fn bf_cbc() -> Cipher
pub fn bf_ecb() -> Cipher
[src]
pub fn bf_ecb() -> Cipher
pub fn bf_cfb64() -> Cipher
[src]
pub fn bf_cfb64() -> Cipher
pub fn bf_ofb() -> Cipher
[src]
pub fn bf_ofb() -> Cipher
pub fn des_cbc() -> Cipher
[src]
pub fn des_cbc() -> Cipher
pub fn des_ecb() -> Cipher
[src]
pub fn des_ecb() -> Cipher
pub fn des_ede3() -> Cipher
[src]
pub fn des_ede3() -> Cipher
pub fn des_ede3_cbc() -> Cipher
[src]
pub fn des_ede3_cbc() -> Cipher
pub fn rc4() -> Cipher
[src]
pub fn rc4() -> Cipher
pub unsafe fn from_ptr(ptr: *const EVP_CIPHER) -> Cipher
[src]
pub unsafe fn from_ptr(ptr: *const EVP_CIPHER) -> Cipher
pub fn as_ptr(&self) -> *const EVP_CIPHER
[src]
pub fn as_ptr(&self) -> *const EVP_CIPHER
pub fn key_len(&self) -> usize
[src]
pub fn key_len(&self) -> usize
Returns 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) -> usize
Trait Implementations
impl Sync for Cipher
[src]
impl Sync for Cipher
impl PartialEq<Cipher> for Cipher
[src]
impl PartialEq<Cipher> for Cipher
fn eq(&self, other: &Cipher) -> bool
[src]
fn eq(&self, other: &Cipher) -> bool
This 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) -> bool
This method tests for !=
.
impl Send for Cipher
[src]
impl Send for Cipher
impl Clone for Cipher
[src]
impl Clone for Cipher
fn clone(&self) -> Cipher
[src]
fn clone(&self) -> Cipher
Returns 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 Cipher
impl Eq for Cipher
[src]
impl Eq for Cipher
Blanket Implementations
impl<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) -> T
Creates 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> From for T
[src]
impl<T> From for T
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 T
Mutably 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