public class BasicBilinearGroup extends java.lang.Object implements BilinearGroup
BilinearGroupImpl wrapper where operations are evaluated naively, i.e. operation by operation.BilinearGroup.Type| Modifier and Type | Field and Description |
|---|---|
protected BilinearGroupImpl |
impl |
| Constructor and Description |
|---|
BasicBilinearGroup(BilinearGroupImpl impl) |
BasicBilinearGroup(Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
BilinearMap |
getBilinearMap()
Returns the
BilinearMap (contains the pairing operation) belonging to this BilinearGroup. |
BasicGroup |
getG1()
Returns the source group G1 associated with this bilinear group.
|
BasicGroup |
getG2()
Returns the source group G2 associated with this bilinear group.
|
BasicGroup |
getGT()
Returns the target group GT associated with this bilinear group.
|
HashIntoGroup |
getHashIntoG1()
Retrieves a hash function that maps byte arrays to G1.
|
HashIntoGroup |
getHashIntoG2()
Retrieves a hash function that maps byte arrays to G2.
|
HashIntoGroup |
getHashIntoGT()
Retrieves a hash function that maps byte arrays to GT.
|
GroupHomomorphism |
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() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetHashIntoZGroupExponent, getZn, sizeprotected BilinearGroupImpl impl
public BasicBilinearGroup(BilinearGroupImpl impl)
public BasicBilinearGroup(Representation repr)
protected void instantiateBasicStuff()
public BasicGroup getG1()
BilinearGroupgetG1 in interface BilinearGrouppublic BasicGroup getG2()
BilinearGroupgetG2 in interface BilinearGrouppublic BasicGroup getGT()
BilinearGroupgetGT in interface BilinearGrouppublic BilinearMap getBilinearMap()
BilinearGroupBilinearMap (contains the pairing operation) belonging to this BilinearGroup.getBilinearMap in interface BilinearGrouppublic GroupHomomorphism 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 HashIntoGroup 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 HashIntoGroup 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 HashIntoGroup 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.Object