public class ElgamalPublicKey extends java.lang.Object implements EncryptionKey
| Constructor and Description |
|---|
ElgamalPublicKey(org.cryptimeleon.math.structures.groups.GroupElement g,
org.cryptimeleon.math.structures.groups.GroupElement h)
Creates a new ElgamalPublic Key
|
ElgamalPublicKey(org.cryptimeleon.math.serialization.Representation repr,
org.cryptimeleon.math.structures.groups.Group group) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.cryptimeleon.math.structures.groups.GroupElement |
getG() |
org.cryptimeleon.math.structures.groups.GroupElement |
getH() |
org.cryptimeleon.math.serialization.Representation |
getRepresentation() |
int |
hashCode() |
org.cryptimeleon.math.hash.ByteAccumulator |
updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator) |
public ElgamalPublicKey(org.cryptimeleon.math.structures.groups.GroupElement g,
org.cryptimeleon.math.structures.groups.GroupElement h)
g - a generatorh - the public key h, where h := g^a (a is the private exponent)public ElgamalPublicKey(org.cryptimeleon.math.serialization.Representation repr,
org.cryptimeleon.math.structures.groups.Group group)
public org.cryptimeleon.math.structures.groups.GroupElement getG()
public org.cryptimeleon.math.structures.groups.GroupElement getH()
public org.cryptimeleon.math.serialization.Representation getRepresentation()
getRepresentation in interface org.cryptimeleon.math.serialization.Representablepublic 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