diff options
Diffstat (limited to 'src/crypto/kdf/Kdf.h')
-rw-r--r-- | src/crypto/kdf/Kdf.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/crypto/kdf/Kdf.h b/src/crypto/kdf/Kdf.h index 368fb16f7..da9a2526c 100644 --- a/src/crypto/kdf/Kdf.h +++ b/src/crypto/kdf/Kdf.h @@ -44,8 +44,23 @@ public: virtual bool transform(const QByteArray& raw, QByteArray& result) const = 0; virtual QSharedPointer<Kdf> clone() const = 0; + virtual QString toString() const = 0; + int benchmark(int msec) const; + /* + * Default target encryption time, in MS. + */ + static const int DEFAULT_ENCRYPTION_TIME = 1000; + /* + * Minimum target encryption time, in MS. + */ + static const int MIN_ENCRYPTION_TIME = 100; + /* + * Maximum target encryption time, in MS. + */ + static const int MAX_ENCRYPTION_TIME = 5000; + protected: virtual int benchmarkImpl(int msec) const = 0; |