Improve performance of the key transformation.

This commit is contained in:
Felix Geyer
2012-05-07 14:31:18 +02:00
parent 7649c781dc
commit d5fc1bf0b4
8 changed files with 50 additions and 17 deletions

View File

@@ -94,9 +94,7 @@ QByteArray CompositeKey::transformKeyRaw(const QByteArray& key, const QByteArray
QByteArray result = key;
for (int i = 0; i < rounds; i++) {
cipher.processInPlace(result);
}
cipher.processInPlace(result, rounds);
return result;
}