diff options
| author | 0xa <[email protected]> | 2016-12-09 18:42:10 +0000 |
|---|---|---|
| committer | 0xa <[email protected]> | 2016-12-09 18:42:10 +0000 |
| commit | 0850f605b1fcb686bae341a4763d072af4c67e50 (patch) | |
| tree | c4160df370bada1915e2f76f02520f03031758a1 | |
| parent | Add Blowfish support (diff) | |
| download | rust-openssl-0850f605b1fcb686bae341a4763d072af4c67e50.tar.xz rust-openssl-0850f605b1fcb686bae341a4763d072af4c67e50.zip | |
Use EVP_bf_cfb64 instead of EVP_bf_cfb
| -rw-r--r-- | openssl-sys/src/lib.rs | 2 | ||||
| -rw-r--r-- | openssl/src/symm.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 142ec09b..3ac3c2c2 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1447,7 +1447,7 @@ extern { pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; pub fn EVP_bf_cbc() -> *const EVP_CIPHER; pub fn EVP_bf_ecb() -> *const EVP_CIPHER; - pub fn EVP_bf_cfb() -> *const EVP_CIPHER; + pub fn EVP_bf_cfb64() -> *const EVP_CIPHER; pub fn EVP_bf_ofb() -> *const EVP_CIPHER; pub fn EVP_rc4() -> *const EVP_CIPHER; diff --git a/openssl/src/symm.rs b/openssl/src/symm.rs index 2704bae7..1a46411d 100644 --- a/openssl/src/symm.rs +++ b/openssl/src/symm.rs @@ -88,8 +88,8 @@ impl Cipher { unsafe { Cipher(ffi::EVP_bf_ecb()) } } - pub fn bf_cfb() -> Cipher { - unsafe { Cipher(ffi::EVP_bf_cfb()) } + pub fn bf_cfb64() -> Cipher { + unsafe { Cipher(ffi::EVP_bf_cfb64()) } } pub fn bf_ofb() -> Cipher { |