Index: crypto/encryptor_win.cc |
diff --git a/crypto/encryptor_win.cc b/crypto/encryptor_win.cc |
index 8bbd6b8c5685e23d90e7b99dc2abeeacf2e4b819..b1bf493e9b6c356336ede929c72894f901fbb4da 100644 |
--- a/crypto/encryptor_win.cc |
+++ b/crypto/encryptor_win.cc |
@@ -39,7 +39,7 @@ Encryptor::~Encryptor() { |
bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { |
DCHECK(key); |
- DCHECK_EQ(CBC, mode) << "Unsupported mode of operation"; |
+ DCHECK(CBC == mode || ECB == mode) << "Unsupported mode of operation"; |
// In CryptoAPI, the IV, padding mode, and feedback register (for a chaining |
// mode) are properties of a key, so we have to create a copy of the key for |