public class ElgamalCipherText extends java.lang.Object implements CipherText
| Constructor and Description |
|---|
ElgamalCipherText(org.cryptimeleon.math.structures.groups.GroupElement c1,
org.cryptimeleon.math.structures.groups.GroupElement c2)
Creates a ciphertext object.
|
ElgamalCipherText(org.cryptimeleon.math.serialization.Representation repr,
org.cryptimeleon.math.structures.groups.Group group)
Creates a ciphertext object from the given representation of its elements and the specified group.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.cryptimeleon.math.structures.groups.GroupElement |
getC1() |
org.cryptimeleon.math.structures.groups.GroupElement |
getC2() |
org.cryptimeleon.math.serialization.Representation |
getRepresentation() |
int |
hashCode() |
java.lang.String |
toString() |
public ElgamalCipherText(org.cryptimeleon.math.serialization.Representation repr,
org.cryptimeleon.math.structures.groups.Group group)
repr - the representation of c1 and c2group - the group of the encryptionpublic ElgamalCipherText(org.cryptimeleon.math.structures.groups.GroupElement c1,
org.cryptimeleon.math.structures.groups.GroupElement c2)
c1 - c1 := g^rc2 - c2 := h^r *mpublic org.cryptimeleon.math.serialization.Representation getRepresentation()
getRepresentation in interface org.cryptimeleon.math.serialization.Representablepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic org.cryptimeleon.math.structures.groups.GroupElement getC1()
public org.cryptimeleon.math.structures.groups.GroupElement getC2()