From a30296af2c8e0ca889e38a198c950d1c54f20459 Mon Sep 17 00:00:00 2001 From: Symeon Huang Date: Sun, 19 Nov 2017 12:37:51 +0000 Subject: [PATCH] Do not include RC2/CFB when compiled with Botan-2 --- lib/cipher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cipher.cpp b/lib/cipher.cpp index 01cd2b5..6485da1 100644 --- a/lib/cipher.cpp +++ b/lib/cipher.cpp @@ -119,7 +119,10 @@ const std::unordered_map Cipher::cipherInfoMap {"chacha20-ietf", {"ChaCha", 32, 12, Cipher::CipherType::STREAM}}, {"des-cfb", {"DES/CFB", 8, 8, Cipher::CipherType::STREAM}}, {"idea-cfb", {"IDEA/CFB", 16, 8, Cipher::CipherType::STREAM}}, +#ifndef USE_BOTAN2 + // RC2 is not supported by botan-2 {"rc2-cfb", {"RC2/CFB", 16, 8, Cipher::CipherType::STREAM}}, +#endif {"rc4-md5", {"RC4-MD5", 16, 16, Cipher::CipherType::STREAM}}, {"salsa20", {"Salsa20", 32, 8, Cipher::CipherType::STREAM}}, {"seed-cfb", {"SEED/CFB", 16, 16, Cipher::CipherType::STREAM}},