projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use ranged-for loops in some obvious cases
[quassel.git]
/
src
/
core
/
cipher.h
diff --git
a/src/core/cipher.h
b/src/core/cipher.h
index
e7f88b3
..
e873ff7
100644
(file)
--- a/
src/core/cipher.h
+++ b/
src/core/cipher.h
@@
-22,7
+22,6
@@
class Cipher
public:
Cipher();
explicit Cipher(QByteArray key, QString cipherType = QString("blowfish"));
public:
Cipher();
explicit Cipher(QByteArray key, QString cipherType = QString("blowfish"));
- ~Cipher();
QByteArray decrypt(QByteArray cipher);
QByteArray decryptTopic(QByteArray cipher);
bool encrypt(QByteArray &cipher);
QByteArray decrypt(QByteArray cipher);
QByteArray decryptTopic(QByteArray cipher);
bool encrypt(QByteArray &cipher);
@@
-34,6
+33,7
@@
public:
bool setType(const QString &type);
QString type() { return m_type; }
static bool neededFeaturesAvailable();
bool setType(const QString &type);
QString type() { return m_type; }
static bool neededFeaturesAvailable();
+ inline bool usesCBC() { return m_cbc; }
private:
//direction is true for encrypt, false for decrypt
private:
//direction is true for encrypt, false for decrypt