You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
641 B
C++

#ifndef EETSIGNER_H
#define EETSIGNER_H
#include <QObject>
#include <QByteArray>
#include <Qca-qt5/QtCrypto/QtCrypto>
class EetSigner : public QObject
{
Q_OBJECT
public:
explicit EetSigner(QObject *parent = 0);
QByteArray signData(const QByteArray &data);
QByteArray sha1HashData(const QByteArray &data);
QByteArray sha256HashData(const QByteArray &data);
QString getCertificate();
void setup(const QString &certPath, const QCA::SecureArray &certPasswd);
private:
QCA::Initializer m_qcaInit;
QCA::KeyBundle m_bundle;
QCA::ConvertResult m_result;
signals:
public slots:
};
#endif // EETSIGNER_H