2019-07-21 19:45:29 +03:00
|
|
|
#include "appcore.h"
|
|
|
|
|
|
|
|
AppCore::AppCore(QObject *parent) : QObject(parent)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-07-23 03:55:17 +03:00
|
|
|
void AppCore::generateKeys(int rsaIdx)
|
2019-07-21 19:45:29 +03:00
|
|
|
{
|
2019-07-23 03:55:17 +03:00
|
|
|
QRSAEncryption e((QRSAEncryption::Rsa(rsaIdx)));
|
2019-07-21 19:45:29 +03:00
|
|
|
e.generatePairKey(pubKey, privKey);
|
2019-07-23 03:55:17 +03:00
|
|
|
emit printKeys(pubKey.toHex(), privKey.toHex());
|
2019-07-21 19:45:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void AppCore::encryptData(QByteArray *dataToEncrypt)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void AppCore::decryptData(QByteArray *dataToDecrypt)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void AppCore::signMessage(QByteArray *messageToSign)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void AppCore::checkSign(QByteArray *messageToCheck)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|