public class LazyBilinearGroup extends java.lang.Object implements BilinearGroup
BilinearGroupImpl wrapper implementing deferred (lazy) evaluation.
Allows for additional optimizations using information about the operations being applied.
For more information, see the documentation.
BilinearGroup.Type| Modifier and Type | Field and Description |
|---|---|
protected BilinearGroupImpl |
impl |
| Constructor and Description |
|---|
LazyBilinearGroup(BilinearGroupImpl impl) |
LazyBilinearGroup(Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
LazyBilinearMap |
getBilinearMap()
Returns the
BilinearMap (contains the pairing operation) belonging to this BilinearGroup. |
LazyGroup |
getG1()
Returns the source group G1 associated with this bilinear group.
|
LazyGroup |
getG2()
Returns the source group G2 associated with this bilinear group.
|
LazyGroup |
getGT()
Returns the target group GT associated with this bilinear group.
|
HashIntoLazyGroup |
getHashIntoG1()
Retrieves a hash function that maps byte arrays to G1.
|
HashIntoLazyGroup |
getHashIntoG2()
Retrieves a hash function that maps byte arrays to G2.
|
HashIntoLazyGroup |
getHashIntoGT()
Retrieves a hash function that maps byte arrays to GT.
|
LazyGroupHomomorphism |
getHomomorphismG2toG1()
Retrieves the homomorphism from G2 to G1 if it exists.
|
BilinearGroup.Type |
getPairingType() |
Representation |
getRepresentation()
The representation of this object.
|
java.lang.Integer |
getSecurityLevel() |
int |
hashCode() |
protected void |
instantiateBasicStuff() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetHashIntoZGroupExponent, getZn, sizeprotected BilinearGroupImpl impl
public LazyBilinearGroup(BilinearGroupImpl impl)
public LazyBilinearGroup(Representation repr)
protected void instantiateBasicStuff()
public LazyGroup getG1()
BilinearGroupgetG1 in interface BilinearGrouppublic LazyGroup getG2()
BilinearGroupgetG2 in interface BilinearGrouppublic LazyGroup getGT()
BilinearGroupgetGT in interface BilinearGrouppublic LazyBilinearMap getBilinearMap()
BilinearGroupBilinearMap (contains the pairing operation) belonging to this BilinearGroup.getBilinearMap in interface BilinearGrouppublic LazyGroupHomomorphism getHomomorphismG2toG1() throws java.lang.UnsupportedOperationException
BilinearGroupgetHomomorphismG2toG1 in interface BilinearGroupjava.lang.UnsupportedOperationException - if no such homomorphism exists or the bilinear group is not configured
to support such functionalitypublic HashIntoLazyGroup getHashIntoG1() throws java.lang.UnsupportedOperationException
BilinearGroupgetHashIntoG1 in interface BilinearGroupjava.lang.UnsupportedOperationException - if no such hash function exists or the bilinear group is not configured
to support such functionalitypublic HashIntoLazyGroup getHashIntoG2() throws java.lang.UnsupportedOperationException
BilinearGroupgetHashIntoG2 in interface BilinearGroupjava.lang.UnsupportedOperationException - if no such hash function exists or the bilinear group is not configured
to support such functionalitypublic HashIntoLazyGroup getHashIntoGT() throws java.lang.UnsupportedOperationException
BilinearGroupgetHashIntoGT in interface BilinearGroupjava.lang.UnsupportedOperationException - if no such hash function exists or the bilinear group is not configured
to support such functionalitypublic java.lang.Integer getSecurityLevel()
getSecurityLevel in interface BilinearGrouppublic BilinearGroup.Type getPairingType()
getPairingType in interface BilinearGrouppublic Representation getRepresentation()
RepresentableReprUtilgetRepresentation in interface RepresentableRepresentationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object