aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorCharlie Ozinga <[email protected]>2016-04-19 17:28:19 -0600
committerCharlie Ozinga <[email protected]>2016-04-19 17:28:19 -0600
commit5682c044696bacb6600617433826141b0a08cd66 (patch)
tree0722303b66763b67e9f91ebdf00a68faad3cedcf /openssl/src
parentAdd 1DES symm ciphers (des-cbc, des-ecb, des-cfb, des-ofb) (diff)
downloadrust-openssl-5682c044696bacb6600617433826141b0a08cd66.tar.xz
rust-openssl-5682c044696bacb6600617433826141b0a08cd66.zip
Remove des_cfb and des_ofb, since they appear on limit platforms
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/crypto/symm.rs24
-rw-r--r--openssl/src/crypto/symm_internal.rs2
2 files changed, 0 insertions, 26 deletions
diff --git a/openssl/src/crypto/symm.rs b/openssl/src/crypto/symm.rs
index dfba7053..935980f3 100644
--- a/openssl/src/crypto/symm.rs
+++ b/openssl/src/crypto/symm.rs
@@ -39,8 +39,6 @@ pub enum Type {
DES_CBC,
DES_ECB,
- DES_CFB,
- DES_OFB,
RC4_128,
}
@@ -389,26 +387,4 @@ mod tests {
cipher_test(super::Type::DES_ECB, pt, ct, key, iv);
}
-
- #[test]
- fn test_des_cfb() {
-
- let pt = "54686973206973206120746573742e";
- let ct = "10577dc484ebfe7679121dff761797";
- let key = "7cb66337f3d3c0fe";
- let iv = "0001020304050607";
-
- cipher_test(super::Type::DES_CFB, pt, ct, key, iv);
- }
-
- #[test]
- fn test_des_ofb() {
-
- let pt = "54686973206973206120746573742e";
- let ct = "10577dc484ebfe76be391c7b8a6b9d";
- let key = "7cb66337f3d3c0fe";
- let iv = "0001020304050607";
-
- cipher_test(super::Type::DES_OFB, pt, ct, key, iv);
- }
}
diff --git a/openssl/src/crypto/symm_internal.rs b/openssl/src/crypto/symm_internal.rs
index 37b9025c..ba01e1c1 100644
--- a/openssl/src/crypto/symm_internal.rs
+++ b/openssl/src/crypto/symm_internal.rs
@@ -28,8 +28,6 @@ pub fn evpc(t: symm::Type) -> (*const ffi::EVP_CIPHER, u32, u32) {
symm::Type::DES_CBC => (ffi::EVP_des_cbc(), 8, 8),
symm::Type::DES_ECB => (ffi::EVP_des_ecb(), 8, 8),
- symm::Type::DES_CFB => (ffi::EVP_des_cfb(), 8, 8),
- symm::Type::DES_OFB => (ffi::EVP_des_ofb(), 8, 8),
symm::Type::RC4_128 => (ffi::EVP_rc4(), 16, 0),
}