mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-30 11:54:24 -04:00
Add Salsa20 cipher.
Restructure SymmetricCipher implementation to allow multiple backends.
This commit is contained in:
parent
3b9982c0a3
commit
a428464573
16 changed files with 1533 additions and 104 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue