public interface ExtensionFieldElement extends PrimeCharacteristicFieldElement
| Modifier and Type | Method and Description |
|---|---|
ExtensionFieldElement |
add(GenericFieldElement b)
Adds
b to this. |
ExtensionFieldElement |
addBase(GenericFieldElement b)
Adds
b to this where b is an element
of the underlying base field. |
ExtensionFieldElement |
addOutOfPlace(ExtensionFieldElement b)
Adds two elements and returns a new object holding the result.
|
ExtensionFieldElement |
addOutOfPlace(GenericFieldElement b)
Adds two elements and returns a new object holding the result.
|
ExtensionFieldElement |
applyFrobenius(int i)
Compute the
i-th Frobenius of this. |
ExtensionFieldElement |
clone()
Clones the value of this field element.
|
ExtensionFieldElement |
conjugate()
Conjugate this element.
|
ExtensionFieldElement |
conjugate(int i)
Conjugate this element
i times. |
ExtensionFieldElement |
divide(GenericFieldElement b)
Divides
this and another field elements. |
ExtensionFieldElement |
divideBy2()
Divides
this by 2. |
ExtensionFieldElement |
exponentiate(BigInteger n)
Raises
this to the power n. |
ExtensionFieldElement |
exponentiate(int n)
Raises
this to the power n. |
ExtensionFieldElement |
exponentiateByPowerOf2(int n)
Raise
this to the power of 2^n. |
ExtensionFieldElement |
exponentiateOutOfPlace(BigInteger n)
Raises
this to the power n. |
ExtensionFieldElement |
exponentiateOutOfPlace(int n)
Raises
this to the power n. |
PrimeFieldElement |
getNorm()
Computes the norm of
this, which is an element of the base
field. |
PrimeCharacteristicFieldElement |
getValue(int index)
Get
index-th subfield element used to represent
this. |
GenericFieldElement[] |
getValues()
Get subfield elements used to represent
this. |
PrimeFieldElement[] |
getValuesRecursive()
Get prime field elements used to represent
this. |
ExtensionFieldElement |
invert()
Sets
this to its inverse. |
ExtensionFieldElement |
multiply(BigInteger n)
Multiples
this by n. |
ExtensionFieldElement |
multiply(GenericFieldElement b)
Multiplies
this with b which is an element of the
same field. |
ExtensionFieldElement |
multiplyBy2()
Multiplies
this with 2. |
ExtensionFieldElement |
multiplyBy3()
Multiplies
this with 3. |
ExtensionFieldElement |
multiplyByAdjointRoot()
Multiply
this by the root used to obtain the extension field. |
ExtensionFieldElement |
multiplyByBase(GenericFieldElement b)
Multiplies
this with b which is an element of the
base field. |
ExtensionFieldElement |
multiplyByPowerOf2(int exponent)
Multiplies
this by 2^n. |
ExtensionFieldElement |
multiplyOutOfPlace(GenericFieldElement b)
Multiplies
this with b which is an element of the
same field, where a new object holding the result is created. |
ExtensionFieldElement |
negate()
Returns the negative of
this. |
ExtensionFieldElement |
square()
Computes the square of
this in-place. |
ExtensionFieldElement |
squareOutOfPlace()
Computes the square of
this, where a new object holding the
result is created. |
ExtensionFieldElement |
squareRoot()
Computes the square root of
this in-place. |
ExtensionFieldElement |
subtract(GenericFieldElement b)
Subtracts
b from this. |
ExtensionFieldElement |
subtractOutOfPlace(ExtensionFieldElement b)
Subtract two elements and returns a new object holding the result.
|
ExtensionFieldElement |
subtractOutOfPlace(GenericFieldElement b)
Subtracts
b from this which is an element of the
base field, where a new object holding the result is created. |
Object |
toBigIntegers()
Returns the (multi-dimensional)
BigInteger-array representation of
this instance. |
byte[] |
toByteArray()
Returns
byte-array representation of this instance. |
addOutOfPlace, getQuadraticCharacter, multiplyBy2OutOfPlace, multiplyBy3OutOfPlace, multiplyByBaseOutOfPlace, multiplyByPowerOf2OutOfPlace, multiplyOutOfPlace, negateOutOfPlace, squareRoot, subtractOutOfPlaceExtensionFieldElement negate()
GenericFieldElementthis. This functions works in-place.negate in interface GenericFieldElementnegate in interface PrimeCharacteristicFieldElementthisExtensionFieldElement add(GenericFieldElement b)
GenericFieldElementb to this. This functions works in-place.add in interface GenericFieldElementadd in interface PrimeCharacteristicFieldElementb - the second addendthis and bExtensionFieldElement addOutOfPlace(GenericFieldElement b)
PrimeCharacteristicFieldElementaddOutOfPlace in interface GenericFieldElementaddOutOfPlace in interface PrimeCharacteristicFieldElementb - the other valueExtensionFieldElement addOutOfPlace(ExtensionFieldElement b)
b - the other valueExtensionFieldElement addBase(GenericFieldElement b)
GenericFieldElementb to this where b is an element
of the underlying base field.addBase in interface GenericFieldElementaddBase in interface PrimeCharacteristicFieldElementb - the second addendthis and bExtensionFieldElement subtract(GenericFieldElement b)
GenericFieldElementb from this. This functions works in-place.subtract in interface GenericFieldElementsubtract in interface PrimeCharacteristicFieldElementb - the subtrahendthis and bExtensionFieldElement subtractOutOfPlace(GenericFieldElement b)
GenericFieldElementb from this which is an element of the
base field, where a new object holding the result is created.subtractOutOfPlace in interface GenericFieldElementsubtractOutOfPlace in interface PrimeCharacteristicFieldElementb - the second factorthis and bExtensionFieldElement subtractOutOfPlace(ExtensionFieldElement b)
b - the other valueExtensionFieldElement invert()
GenericFieldElementthis to its inverse.invert in interface GenericFieldElementinvert in interface PrimeCharacteristicFieldElementthisExtensionFieldElement multiply(GenericFieldElement b)
GenericFieldElementthis with b which is an element of the
same field.multiply in interface GenericFieldElementmultiply in interface PrimeCharacteristicFieldElementb - the second factorthis and bExtensionFieldElement multiplyOutOfPlace(GenericFieldElement b)
GenericFieldElementthis with b which is an element of the
same field, where a new object holding the result is created.multiplyOutOfPlace in interface GenericFieldElementmultiplyOutOfPlace in interface PrimeCharacteristicFieldElementb - the second factorthis and bExtensionFieldElement multiplyByBase(GenericFieldElement b)
GenericFieldElementthis with b which is an element of the
base field.multiplyByBase in interface GenericFieldElementmultiplyByBase in interface PrimeCharacteristicFieldElementb - the second factorthis and bExtensionFieldElement multiply(BigInteger n)
GenericFieldElementthis by n.multiply in interface GenericFieldElementmultiply in interface PrimeCharacteristicFieldElementn - the factorthis and nExtensionFieldElement multiplyBy2()
PrimeCharacteristicFieldElementthis with 2.multiplyBy2 in interface PrimeCharacteristicFieldElementthis and 2ExtensionFieldElement multiplyBy3()
PrimeCharacteristicFieldElementthis with 3.multiplyBy3 in interface PrimeCharacteristicFieldElementthis and 3ExtensionFieldElement multiplyByPowerOf2(int exponent)
PrimeCharacteristicFieldElementthis by 2^n.multiplyByPowerOf2 in interface PrimeCharacteristicFieldElementexponent - the exponentthis and 2^nExtensionFieldElement multiplyByAdjointRoot()
this by the root used to obtain the extension field.this multiplied by the adjoint root.ExtensionFieldElement divide(GenericFieldElement b)
this and another field elements.
You have no guarantee that b remains unchanged.
divide in interface GenericFieldElementdivide in interface PrimeCharacteristicFieldElementb - the divisorthis and bExtensionFieldElement divideBy2()
PrimeCharacteristicFieldElementthis by 2.divideBy2 in interface PrimeCharacteristicFieldElementthis divided by 2.GenericFieldElement[] getValues()
this.thisPrimeFieldElement[] getValuesRecursive()
this. This calls
getValues() recursively.
They values are sorted from the coefficients of the lowest power to the the
highest power.this.PrimeCharacteristicFieldElement getValue(int index)
index-th subfield element used to represent
this.index - index of the desired subfield elementindex-th subfield element used to represent
thisPrimeFieldElement getNorm()
this, which is an element of the base
field.aExtensionFieldElement conjugate()
thisExtensionFieldElement conjugate(int i)
i times.i - number of times this should be conjugatedthisExtensionFieldElement square()
GenericFieldElementthis in-place.square in interface GenericFieldElementsquare in interface PrimeCharacteristicFieldElementthisExtensionFieldElement squareOutOfPlace()
GenericFieldElementthis, where a new object holding the
result is created.squareOutOfPlace in interface GenericFieldElementsquareOutOfPlace in interface PrimeCharacteristicFieldElementthisExtensionFieldElement squareRoot()
GenericFieldElementthis in-place.squareRoot in interface GenericFieldElementsquareRoot in interface PrimeCharacteristicFieldElementthis or null if the
square root does not exist.ExtensionFieldElement exponentiate(int n)
GenericFieldElementthis to the power n.
Works in-place.exponentiate in interface GenericFieldElementexponentiate in interface PrimeCharacteristicFieldElementn - the exponentnth power of thisExtensionFieldElement exponentiate(BigInteger n)
GenericFieldElementthis to the power n.
Works in-place.exponentiate in interface GenericFieldElementexponentiate in interface PrimeCharacteristicFieldElementn - the exponentnth power of thisExtensionFieldElement exponentiateOutOfPlace(int n)
GenericFieldElementthis to the power n.exponentiateOutOfPlace in interface GenericFieldElementn - the exponentnth power of thisExtensionFieldElement exponentiateOutOfPlace(BigInteger n)
GenericFieldElementthis to the power n.exponentiateOutOfPlace in interface GenericFieldElementn - the exponentnth power of thisExtensionFieldElement exponentiateByPowerOf2(int n)
GenericFieldElementthis to the power of 2^n.exponentiateByPowerOf2 in interface GenericFieldElementexponentiateByPowerOf2 in interface PrimeCharacteristicFieldElementn - the exponentn-th power of this.ExtensionFieldElement applyFrobenius(int i)
i-th Frobenius of this.i - number of times the Frobenius map should be appliedi-times to this
..Object toBigIntegers()
BigInteger-array representation of
this instance.BigInteger-array representationbyte[] toByteArray()
byte-array representation of this instance.toByteArray in interface GenericFieldElementbyte-array representationExtensionFieldElement clone()
clone in interface GenericFieldElementclone in interface PrimeCharacteristicFieldElementCopyright © 2011–2022 Stiftung SIC. All rights reserved.