Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
proofs
proofofcorrectdecryption.hpp
Go to the documentation of this file.
1
12
#ifndef _PROOFOFCORRECTDECRYPTION_H_
13
#define _PROOFOFCORRECTDECRYPTION_H_
14
15
#include "
verification.hpp
"
16
17
18
namespace
proofs {
19
20
30
class
ProofOfCorrectDecryption
:
public
Verification
31
{
32
private
:
36
arithm::Elmt
y
;
37
41
elGamal::CipherGroup
C
;
42
46
arithm::Group
*
M
;
47
52
elGamal::ArrayOfCiphers
w
;
53
58
arithm::ArrayOfElmts
f
;
59
60
61
public
:
85
ProofOfCorrectDecryption
(
86
bool
&readingWasOK,
87
XmlConfig
* config,
88
std::vector<uint8_t> prefix,
89
unsigned
int
N,
90
arithm::Elmt
partialJointKey,
91
elGamal::CipherGroup
cipherTextsGrp,
92
arithm::Group
* plainTextGrp,
93
elGamal::ArrayOfCiphers
inputCiphers,
94
arithm::ArrayOfElmts
decryptionFactors,
95
verifierUtils::ByteTree
* commitmentFSproof,
96
verifierUtils::ByteTree
* replyFSproof);
97
109
bool
isEverythingOK
();
110
111
};
112
113
114
}
// closing namespace
115
116
#endif