mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-30 11:54:24 -04:00
Improve performance of the key transformation.
This commit is contained in:
parent
7649c781dc
commit
d5fc1bf0b4
8 changed files with 50 additions and 17 deletions
|
@ -21,7 +21,7 @@
|
|||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QScopedPointer>
|
||||
|
||||
class SymmetricCipherBackend;
|
||||
#include "crypto/SymmetricCipherBackend.h"
|
||||
|
||||
class SymmetricCipher
|
||||
{
|
||||
|
@ -49,8 +49,18 @@ public:
|
|||
SymmetricCipher::Direction direction, const QByteArray& key, const QByteArray& iv);
|
||||
~SymmetricCipher();
|
||||
|
||||
QByteArray process(const QByteArray& data);
|
||||
void processInPlace(QByteArray& data);
|
||||
inline QByteArray process(const QByteArray& data) {
|
||||
return m_backend->process(data);
|
||||
}
|
||||
|
||||
inline void processInPlace(QByteArray& data) {
|
||||
m_backend->processInPlace(data);
|
||||
}
|
||||
|
||||
inline void processInPlace(QByteArray& data, int rounds) {
|
||||
Q_ASSERT(rounds > 0);
|
||||
m_backend->processInPlace(data, rounds);
|
||||
}
|
||||
|
||||
void reset();
|
||||
int blockSize() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue