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]
pub fn aes_128_ecb() -> Cipher
[src]
pub fn aes_128_cbc() -> Cipher
[src]
pub fn aes_128_xts() -> Cipher
[src]
pub fn aes_128_ctr() -> Cipher
[src]
pub fn aes_128_cfb1() -> Cipher
[src]
pub fn aes_128_cfb128() -> Cipher
[src]
pub fn aes_128_cfb8() -> Cipher
[src]
pub fn aes_128_gcm() -> Cipher
[src]
pub fn aes_256_ecb() -> Cipher
[src]
pub fn aes_256_cbc() -> Cipher
[src]
pub fn aes_256_xts() -> Cipher
[src]
pub fn aes_256_ctr() -> Cipher
[src]
pub fn aes_256_cfb1() -> Cipher
[src]
pub fn aes_256_cfb128() -> Cipher
[src]
pub fn aes_256_cfb8() -> Cipher
[src]
pub fn aes_256_gcm() -> Cipher
[src]
pub fn bf_cbc() -> Cipher
[src]
pub fn bf_ecb() -> Cipher
[src]
pub fn bf_cfb64() -> Cipher
[src]
pub fn bf_ofb() -> Cipher
[src]
pub fn des_cbc() -> Cipher
[src]
pub fn des_ecb() -> Cipher
[src]
pub fn rc4() -> Cipher
[src]
pub unsafe fn from_ptr(ptr: *const EVP_CIPHER) -> Cipher
[src]
pub fn as_ptr(&self) -> *const EVP_CIPHER
[src]
pub fn key_len(&self) -> usize
[src]
Returns the length of keys used with this cipher.
pub fn iv_len(&self) -> Option<usize>
[src]
Returns the length of the IV used with this cipher, or None
if the
cipher does not use an IV.