Add CompositeKey::transformKeyBenchmark().

This method tests how many key transformation rounds can be calculated
within a specific time.
This commit is contained in:
Felix Geyer
2012-05-07 14:38:10 +02:00
parent d5fc1bf0b4
commit 7790f2e7ba
4 changed files with 89 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ public:
QByteArray transform(const QByteArray& seed, int rounds) const;
void addKey(const Key& key);
static int transformKeyBenchmark(int msec);
private:
static QByteArray transformKeyRaw(const QByteArray& key, const QByteArray& seed,
int rounds);