Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Do not include RC2/CFB when compiled with Botan-2
Browse files Browse the repository at this point in the history
  • Loading branch information
librehat committed Nov 19, 2017
1 parent c4b1fd0 commit a30296a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cipher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ const std::unordered_map<std::string, Cipher::CipherInfo> 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}},
Expand Down

0 comments on commit a30296a

Please sign in to comment.