Debian Codegraph @

src/common/icryptolayer.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/common/icryptolayer.h`/
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include <QByteArray>
7
8 class ICryptoLayercxx . . $ ICryptoLayer#
9 {
10 public:
11 /// Initialization.
12 virtual void initcxx . . $ ICryptoLayer#init(49f6e7a06ebc5aa8).() = 0;
13
14 /// @return subject public key.
15 virtual QByteArraycxx . . $ QByteArray# publicKeycxx . . $ ICryptoLayer#publicKey(b3c286cec66e09f4).() = 0;
16
17 /// Set the key that will be used in public key operations (as verify).
18 /// This key is generated by other subject.
19 virtual void usePublicKeycxx . . $ ICryptoLayer#usePublicKey(45672f3c6961a244).(QByteArraycxx . . $ QByteArray# const &publicKey) = 0;
20
21 /// Compute and validates the data signature against the provided signature.
22 virtual bool verifycxx . . $ ICryptoLayer#verify(5ad6b2491b335728).(QByteArraycxx . . $ QByteArray# const &data, QByteArraycxx . . $ QByteArray# const &signature) = 0;
23
24 /// Generates the signature of the data.
25 virtual QByteArraycxx . . $ QByteArray# signaturecxx . . $ ICryptoLayer#signature(ba1ae99d10185369).(QByteArraycxx . . $ QByteArray# const &data) = 0;
26
27 virtual ~cxx . . $ ICryptoLayer#`~ICryptoLayer`(49f6e7a06ebc5aa8).ICryptoLayercxx . . $ ICryptoLayer#() = default;
28 };