public class BarretoNaehrigGroup2Impl extends BarretoNaehrigSourceGroupImpl
cofactor, field, generator, size| Constructor and Description |
|---|
BarretoNaehrigGroup2Impl(java.math.BigInteger size,
java.math.BigInteger traceFrobenius,
ExtensionFieldElement a6)
Construct subgroup of E:y^2=x^3+a6 using given parameters.
|
BarretoNaehrigGroup2Impl(Representation r)
Recreates a group from the given representation.
|
| Modifier and Type | Method and Description |
|---|---|
double |
estimateCostInvPerOp()
Estimates the number of inversions that can be done per group operation for the same cost.
|
BarretoNaehrigGroup2ElementImpl |
getElement(FieldElement x,
FieldElement y)
Construct an point on this curve given the x- and y-coordinates.
|
GroupElementImpl |
getNeutralElement()
Returns the neutral element of this group.
|
decompressX, getUniformlyRandomElement, getUniformlyRandomElementOblivious, hasPrimeSize, isShortForm, mapToPoint, mapToSubgroup, superGetUniformlyRandomElement, toStringcofactorMultiplication, equals, getA1, getA2, getA3, getA4, getA6, getCofactor, getFieldOfDefinition, getGenerator, getRepresentation, getSize, getUniqueByteLength, hashCode, isMember, isOnCurve, restoreElement, setGenerator, sizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisCommutativeexp, getUniformlyRandomNonNeutral, implementsOwnExp, implementsOwnMultiExp, multiexp, restoreFromRepresentationpublic BarretoNaehrigGroup2Impl(java.math.BigInteger size,
java.math.BigInteger traceFrobenius,
ExtensionFieldElement a6)
size - size of the subgrouptraceFrobenius - used to calculate the cofactor for the resulting groupa6 - curve parameter for weierstrass equationpublic BarretoNaehrigGroup2Impl(Representation r)
r - the representation to use for reconstructionpublic BarretoNaehrigGroup2ElementImpl getElement(FieldElement x, FieldElement y)
WeierstrassCurvegetElement in interface WeierstrassCurvegetElement in class PairingSourceGroupImplx - the x-coordinatey - the y-coordinatepublic GroupElementImpl getNeutralElement()
GroupImplpublic double estimateCostInvPerOp()
GroupImpl2 would mean that an inversion costs half as much as a group operation, on average.