| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/common/cryptolayer.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "icryptolayer.h"cxx . . $ `<file>/src/common/icryptolayer.h`/ |
| 7 | #include <botan/pk_keys.h> |
| 8 | #include <memory> |
| 9 | |
| 10 | class CryptoLayercxx . . $ CryptoLayer# final : public ICryptoLayercxx . . $ ICryptoLayer# |
| 11 | { |
| 12 | public: |
| 13 | void initcxx . . $ CryptoLayer#init(49f6e7a06ebc5aa8).() override; |
| 14 | |
| 15 | QByteArraycxx . . $ QByteArray# publicKeycxx . . $ CryptoLayer#publicKey(b3c286cec66e09f4).() override; |
| 16 | void usePublicKeycxx . . $ CryptoLayer#usePublicKey(45672f3c6961a244).(QByteArraycxx . . $ QByteArray# const &publicKey) override; |
| 17 | |
| 18 | bool verifycxx . . $ CryptoLayer#verify(5ad6b2491b335728).(QByteArraycxx . . $ QByteArray# const &data, QByteArraycxx . . $ QByteArray# const &signature) override; |
| 19 | QByteArraycxx . . $ QByteArray# signaturecxx . . $ CryptoLayer#signature(ba1ae99d10185369).(QByteArraycxx . . $ QByteArray# const &data) override; |
| 20 | |
| 21 | private: |
| 22 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Botancxx . . $ Botan/::Private_Keycxx . . $ Botan/Private_Key#> privateKey_cxx . . $ CryptoLayer#privateKey_.; |
| 23 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Botancxx . . $ Botan/::Public_Keycxx . . $ Botan/Public_Key#> opPublicKey_cxx . . $ CryptoLayer#opPublicKey_.; |
| 24 | }; |