Implements an El-Gamal ciphertext, i.e. a pair of group elements.
More...
#include <ciphertext.hpp>
Public Member Functions | |
CipherText (verifierUtils::ByteTree *bt, CipherGroup c) | |
Reads the two children of bt to retrieve the bytetree representations of u and v as elements of c. | |
CipherText (arithm::Elmt left, arithm::Elmt right) | |
Assigns directly u to left and v to right. | |
verifierUtils::ByteTree * | toByteTree () |
Turns this ciphertext into a node containing the bytetree representations of u and v. | |
arithm::Elmt | getU () |
Returns the u attribute, i.e. the left side member. | |
arithm::Elmt | getV () |
Returns the v attribute, i.e. the right side member. |
Private Attributes | |
arithm::Elmt | u |
The left hand side of the pair. | |
arithm::Elmt | v |
The right hand side of the pair. |
Implements an El-Gamal ciphertext, i.e. a pair of group elements.
Definition at line 30 of file ciphertext.hpp.
CipherText::CipherText | ( | verifierUtils::ByteTree * | bt, |
CipherGroup | c | ||
) |
Reads the two children of bt to retrieve the bytetree representations of u and v as elements of c.
Definition at line 19 of file ciphertext.cpp.
CipherText::CipherText | ( | arithm::Elmt | left, |
arithm::Elmt | right | ||
) |
Assigns directly u to left and v to right.
Definition at line 34 of file ciphertext.cpp.
arithm::Elmt CipherText::getU | ( | ) |
Returns the u attribute, i.e. the left side member.
Definition at line 49 of file ciphertext.cpp.
arithm::Elmt CipherText::getV | ( | ) |
Returns the v attribute, i.e. the right side member.
Definition at line 55 of file ciphertext.cpp.
verifierUtils::ByteTree * CipherText::toByteTree | ( | ) |
Turns this ciphertext into a node containing the bytetree representations of u and v.
Definition at line 40 of file ciphertext.cpp.
|
private |
The left hand side of the pair.
Definition at line 36 of file ciphertext.hpp.
|
private |
The right hand side of the pair.
Definition at line 41 of file ciphertext.hpp.