Add Salsa20 cipher.

Restructure SymmetricCipher implementation to allow multiple backends.
This commit is contained in:
Felix Geyer 2010-11-21 16:19:27 +01:00
parent 3b9982c0a3
commit a428464573
16 changed files with 1533 additions and 104 deletions

View file

@ -20,20 +20,22 @@
#include <QtCore/QByteArray>
class SymmetricCipherPrivate;
class SymmetricCipherBackend;
class SymmetricCipher
{
public:
enum Algorithm
{
Aes256
Aes256,
Salsa20
};
enum Mode
{
Cbc,
Ecb
Ecb,
Stream
};
enum Direction
@ -53,8 +55,8 @@ public:
int blockSize() const;
private:
SymmetricCipherPrivate* const d_ptr;
Q_DECLARE_PRIVATE(SymmetricCipher);
Q_DISABLE_COPY(SymmetricCipher)
SymmetricCipherBackend* m_backend;
};
#endif // KEEPASSX_SYMMETRICCIPHER_H