mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-06 13:34:16 -04:00
No longer use automoc.
This commit is contained in:
parent
a428464573
commit
230d24a123
21 changed files with 416 additions and 164 deletions
|
@ -16,30 +16,11 @@
|
|||
*/
|
||||
|
||||
#include "CompositeKey.h"
|
||||
|
||||
#include <QtCore/QThread>
|
||||
#include "CompositeKey_p.h"
|
||||
|
||||
#include "crypto/CryptoHash.h"
|
||||
#include "crypto/SymmetricCipher.h"
|
||||
|
||||
class KeyTransformation : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
KeyTransformation(const QByteArray& key, const QByteArray& seed, int rounds);
|
||||
QByteArray result();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
|
||||
private:
|
||||
QByteArray m_key;
|
||||
QByteArray m_seed;
|
||||
int m_rounds;
|
||||
QByteArray m_result;
|
||||
};
|
||||
|
||||
CompositeKey::~CompositeKey()
|
||||
{
|
||||
qDeleteAll(m_keys);
|
||||
|
@ -109,5 +90,3 @@ QByteArray KeyTransformation::result()
|
|||
{
|
||||
return m_result;
|
||||
}
|
||||
|
||||
#include "KeyTransformation.moc"
|
||||
|
|
41
src/keys/CompositeKey_p.h
Normal file
41
src/keys/CompositeKey_p.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (C) 2010 Felix Geyer <debfx@fobos.de>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 or (at your option)
|
||||
* version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KEEPASSX_COMPOSITEKEY_P_H
|
||||
#define KEEPASSX_COMPOSITEKEY_P_H
|
||||
|
||||
#include <QtCore/QThread>
|
||||
|
||||
class KeyTransformation : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
KeyTransformation(const QByteArray& key, const QByteArray& seed, int rounds);
|
||||
QByteArray result();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
|
||||
private:
|
||||
QByteArray m_key;
|
||||
QByteArray m_seed;
|
||||
int m_rounds;
|
||||
QByteArray m_result;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_COMPOSITEKEY_P_H
|
Loading…
Add table
Add a link
Reference in a new issue