projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: AutoWhoX, only search nickname by nickname
[quassel.git]
/
src
/
core
/
cipher.cpp
diff --git
a/src/core/cipher.cpp
b/src/core/cipher.cpp
index
9bfc787
..
88a4c50
100644
(file)
--- a/
src/core/cipher.cpp
+++ b/
src/core/cipher.cpp
@@
-56,7
+56,8
@@
bool Cipher::setKey(QByteArray key)
// if(Preferences::self()->encryptionType())
// m_cbc = true;
// else
// if(Preferences::self()->encryptionType())
// m_cbc = true;
// else
- m_cbc = false;
+// default to CBC
+ m_cbc = true;
m_key = key;
}
return true;
m_key = key;
}
return true;
@@
-117,7
+118,6
@@
QByteArray Cipher::decrypt(QByteArray cipherText)
// (if cbc and no error we parse cbc) || (if ecb and error we parse cbc)
if ((m_cbc && !error) || (!m_cbc && error))
{
// (if cbc and no error we parse cbc) || (if ecb and error we parse cbc)
if ((m_cbc && !error) || (!m_cbc && error))
{
- cipherText = cipherText;
temp = blowfishCBC(cipherText, false);
if (temp == cipherText)
temp = blowfishCBC(cipherText, false);
if (temp == cipherText)