diff options
author | Jonathan White <support@dmapps.us> | 2018-01-01 21:21:02 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2018-01-13 22:23:30 +0300 |
commit | 542ee42313f16d7f6522c746b0403da0369a4e99 (patch) | |
tree | 65a48e988dc872229b07d2090c2e22c75f0a6aa0 /src/crypto/kdf/AesKdf.h | |
parent | 9140893cd3e7658cd5ecda2fed4207fda6893f81 (diff) |
Add Argon2Kdf and enable parameters in db settings
Note: This implementation is not yet connected to the
database itself and will corrupt existing kdbx3 db's.
* Implemented memory and parallelism parameters for Argon2Kdf
* Using libargon2; libsodium does not support Argon2d algorithm
* Moved basic rounds parameter into Kdf class
* Reimplemented benchmark algorithm; previous was utterly broken
Diffstat (limited to 'src/crypto/kdf/AesKdf.h')
-rw-r--r-- | src/crypto/kdf/AesKdf.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/crypto/kdf/AesKdf.h b/src/crypto/kdf/AesKdf.h index 28206a8d6..3e2c8ada6 100644 --- a/src/crypto/kdf/AesKdf.h +++ b/src/crypto/kdf/AesKdf.h @@ -26,25 +26,15 @@ public: AesKdf(); bool transform(const QByteArray& raw, QByteArray& result) const override; - void randomizeTransformSalt() override; QSharedPointer<Kdf> clone() const override; - quint64 rounds() const override; - QByteArray seed() const override; - - bool setRounds(quint64 rounds) override; - bool setSeed(const QByteArray& seed) override; - protected: int benchmarkImpl(int msec) const override; private: - quint64 m_rounds; - QByteArray m_seed; - static bool transformKeyRaw(const QByteArray& key, const QByteArray& seed, - quint64 rounds, + int rounds, QByteArray* result) Q_REQUIRED_RESULT; }; |