public class GroupElementPlainText extends java.lang.Object implements PlainText, org.cryptimeleon.math.hash.UniqueByteRepresentable
| Constructor and Description |
|---|
GroupElementPlainText(org.cryptimeleon.math.structures.groups.GroupElement elem) |
GroupElementPlainText(org.cryptimeleon.math.serialization.Representation repr,
org.cryptimeleon.math.structures.groups.Group baseGroup)
Reconstructs this group element plaintext from the given representation using the given group
as the restorer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.cryptimeleon.math.structures.groups.GroupElement |
get()
Returns the group element represented by this plaintext.
|
org.cryptimeleon.math.serialization.Representation |
getRepresentation() |
int |
hashCode() |
java.lang.String |
toString() |
org.cryptimeleon.math.hash.ByteAccumulator |
updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator) |
public GroupElementPlainText(org.cryptimeleon.math.structures.groups.GroupElement elem)
public GroupElementPlainText(org.cryptimeleon.math.serialization.Representation repr,
org.cryptimeleon.math.structures.groups.Group baseGroup)
repr - the representation to restore frombaseGroup - the group to use as restorer; should be the group that contains the group elementpublic org.cryptimeleon.math.structures.groups.GroupElement get()
public 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.hash.ByteAccumulator updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator)
updateAccumulator in interface org.cryptimeleon.math.hash.UniqueByteRepresentable