From 00816653399ceb3a06a35c3b7c3fb161891f5763 Mon Sep 17 00:00:00 2001 From: 0xa Date: Fri, 9 Dec 2016 17:06:15 +0000 Subject: Add Blowfish support --- openssl/src/symm.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'openssl/src') diff --git a/openssl/src/symm.rs b/openssl/src/symm.rs index f94a8d70..2704bae7 100644 --- a/openssl/src/symm.rs +++ b/openssl/src/symm.rs @@ -80,6 +80,22 @@ impl Cipher { unsafe { Cipher(ffi::EVP_aes_256_gcm()) } } + pub fn bf_cbc() -> Cipher { + unsafe { Cipher(ffi::EVP_bf_cbc()) } + } + + pub fn bf_ecb() -> Cipher { + unsafe { Cipher(ffi::EVP_bf_ecb()) } + } + + pub fn bf_cfb() -> Cipher { + unsafe { Cipher(ffi::EVP_bf_cfb()) } + } + + pub fn bf_ofb() -> Cipher { + unsafe { Cipher(ffi::EVP_bf_ofb()) } + } + pub fn des_cbc() -> Cipher { unsafe { Cipher(ffi::EVP_des_cbc()) } } -- cgit v1.2.3