Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
elgamal
arrayofciphers.hpp
Go to the documentation of this file.
1
12
#ifndef _ARRAYOFCIPHERS_H_
13
#define _ARRAYOFCIPHERS_H_
14
15
#include "../arithm/arithm.hpp"
16
#include "../verifierutils/verifierutils.hpp"
17
18
19
namespace
elGamal {
20
21
// forward declaration
22
class
CipherGroup
;
23
class
CipherText
;
24
34
class
ArrayOfCiphers
35
{
36
private
:
41
arithm::ArrayOfElmts
u
;
42
47
arithm::ArrayOfElmts
v
;
48
public
:
49
58
ArrayOfCiphers
(
verifierUtils::ByteTree
* bt,
CipherGroup
c);
59
63
ArrayOfCiphers
(
arithm::ArrayOfElmts
left,
arithm::ArrayOfElmts
right);
64
69
verifierUtils::ByteTree
*
toByteTree
();
70
74
arithm::ArrayOfElmts
getUarray
();
75
79
arithm::ArrayOfElmts
getVarray
();
80
87
CipherText
getCipherText
(
unsigned
int
index);
88
92
unsigned
int
size
();
93
94
};
95
96
}
// closing namespace
97
98
#endif