public class BarretoNaehrigTatePairing extends AbstractPairing
g1, g2, gT| Constructor and Description |
|---|
BarretoNaehrigTatePairing(BarretoNaehrigGroup1Impl g1,
BarretoNaehrigGroup2Impl g2,
BarretoNaehrigTargetGroupImpl gT,
java.math.BigInteger u)
Construct Tate pairing \(\mathbb{G}_1 \times \mathbb{G}_2 \rightarrow \mathbb{G}_T\).
|
| Modifier and Type | Method and Description |
|---|---|
protected ExtensionFieldElement |
evaluateLine(FieldElement[] line,
PairingSourceGroupElement P,
PairingSourceGroupElement Q)
TODO (rh): Write javadoc for this.
|
PairingTargetGroupElementImpl |
exponentiate(FieldElement f)
Implements final exponentiation.
|
boolean |
isSymmetric()
Returns true if \(e(g,h) = e(h,g)\) for all g in G1, h in G2.
|
protected ExtensionFieldElement |
pair(PairingSourceGroupElement P,
PairingSourceGroupElement Q)
Computes the first step of the pairing.
|
java.lang.String |
toString() |
apply, equals, hashCode, init, millerclone, finalize, getClass, notify, notifyAll, wait, wait, waitapplypublic BarretoNaehrigTatePairing(BarretoNaehrigGroup1Impl g1, BarretoNaehrigGroup2Impl g2, BarretoNaehrigTargetGroupImpl gT, java.math.BigInteger u)
protected ExtensionFieldElement evaluateLine(FieldElement[] line, PairingSourceGroupElement P, PairingSourceGroupElement Q)
evaluateLine in class AbstractPairingline - parameterization of the lineP - - point on the lineQ - - point where line es evaluatedprotected ExtensionFieldElement pair(PairingSourceGroupElement P, PairingSourceGroupElement Q)
AbstractPairingA pairing is computed in several steps, where the first step includes miller Algorithm and the second step is the final exponentiation. This functions computes the first step of the pairing computation that depends on the concrete pairing.
pair in class AbstractPairingP - - first argument of pairingQ - - second argument of pairingpublic PairingTargetGroupElementImpl exponentiate(FieldElement f)
AbstractPairingExponentiation of f to the power of e=(q^k-1)/r where r is the size of groups G1, G2, and GT, respectively.
exponentiate in class AbstractPairingf - the element to exponentiatepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isSymmetric()
BilinearMapImpl