Struct openssl::symm::Cipher [−][src]
pub struct 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 fn chacha20() -> Cipher
[src]
pub fn chacha20() -> Cipher
Requires OpenSSL 1.1.0 or newer.
pub fn chacha20_poly1305() -> Cipher
[src]
pub fn chacha20_poly1305() -> Cipher
Requires OpenSSL 1.1.0 or newer.
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 Copy for Cipher
[src]
impl Copy 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Cipher
[src]
impl PartialEq 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 Eq for Cipher
[src]
impl Eq for Cipher
impl Sync for Cipher
[src]
impl Sync for Cipher
impl Send for Cipher
[src]
impl Send for Cipher