projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce2be6
)
cipher.cpp: Default to CBC instead of ECB
author
alturiak
<1785173+alturiak@users.noreply.github.com>
Mon, 3 Sep 2018 18:35:20 +0000
(20:35 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 3 Sep 2018 20:17:34 +0000
(22:17 +0200)
For security reasons (and compatibility to other irc-client's implementations), default to CBC for blowfish encryption.
src/core/cipher.cpp
patch
|
blob
|
history
diff --git
a/src/core/cipher.cpp
b/src/core/cipher.cpp
index
fb6a697
..
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
- m_cbc = false;
+// default to CBC
+ m_cbc = true;
m_key = key;
}
return true;