summaryrefslogtreecommitdiffstats
path: root/src/crypto-lib/signature_p.h
blob: e0189548fb8ef63c98e4a2948dc96a08d44fc102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (C) 2021 The Qt Company Ltd.
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef SIGNATURE_P_H
#define SIGNATURE_P_H

#include <QtAppManCrypto/signature.h>

QT_BEGIN_NAMESPACE_AM

class SignaturePrivate
{
public:
    QByteArray hash;
    QString error;

    QByteArray create(const QByteArray &signingCertificatePkcs12,
                      const QByteArray &signingCertificatePassword) noexcept(false);
    bool verify(const QByteArray &signaturePkcs7,
                const QByteArrayList &chainOfTrust) noexcept(false);
};

QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.

#endif // SIGNATURE_P_H