diff options
| author | Steven Fackler <[email protected]> | 2016-04-29 21:17:17 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-04-29 21:17:17 -0700 |
| commit | a7bade104c6af263149236a9d8a31e9a758c9a97 (patch) | |
| tree | e314e81874da1e73b8552be667bdaeefa33fb123 /openssl/src/crypto/symm_internal.rs | |
| parent | Add accessors for x509 subject alt names (diff) | |
| parent | Remove des_cfb and des_ofb, since they appear on limit platforms (diff) | |
| download | rust-openssl-a7bade104c6af263149236a9d8a31e9a758c9a97.tar.xz rust-openssl-a7bade104c6af263149236a9d8a31e9a758c9a97.zip | |
Merge pull request #381 from chaaz/master
Add 1DES symm ciphers (des-cbc, des-ecb, des-cfb, des-ofb)
Diffstat (limited to 'openssl/src/crypto/symm_internal.rs')
| -rw-r--r-- | openssl/src/crypto/symm_internal.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl/src/crypto/symm_internal.rs b/openssl/src/crypto/symm_internal.rs index 5c457f3f..ba01e1c1 100644 --- a/openssl/src/crypto/symm_internal.rs +++ b/openssl/src/crypto/symm_internal.rs @@ -26,6 +26,9 @@ pub fn evpc(t: symm::Type) -> (*const ffi::EVP_CIPHER, u32, u32) { symm::Type::AES_256_CFB128 => (ffi::EVP_aes_256_cfb128(), 32, 16), symm::Type::AES_256_CFB8 => (ffi::EVP_aes_256_cfb8(), 32, 16), + symm::Type::DES_CBC => (ffi::EVP_des_cbc(), 8, 8), + symm::Type::DES_ECB => (ffi::EVP_des_ecb(), 8, 8), + symm::Type::RC4_128 => (ffi::EVP_rc4(), 16, 0), } } |