diff options
| author | 0xa <[email protected]> | 2016-12-09 17:06:15 +0000 |
|---|---|---|
| committer | 0xa <[email protected]> | 2016-12-09 17:06:15 +0000 |
| commit | 00816653399ceb3a06a35c3b7c3fb161891f5763 (patch) | |
| tree | 6c5e628d9bfa5daaad0473a5570dfbc01ffbefa0 /openssl/src | |
| parent | Update README.md (diff) | |
| download | rust-openssl-00816653399ceb3a06a35c3b7c3fb161891f5763.tar.xz rust-openssl-00816653399ceb3a06a35c3b7c3fb161891f5763.zip | |
Add Blowfish support
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/symm.rs | 16 |
1 files changed, 16 insertions, 0 deletions
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()) } } |