public interface Field extends GenericField
FieldElement,
BinaryField,
PrimeFieldequals, exponentiate, getBaseField, getCardinality, getFieldType, hashCode, invertElements, toElementgetFieldSizeFieldElement negate(GenericFieldElement a)
GenericFielda, i.e. performs the operation b = -b.negate in interface GenericFielda - the field elementaFieldElement negateOutOfPlace(GenericFieldElement a)
GenericFielda, i.e. performs the operation b = -b,
where a new object holding the result is created.negateOutOfPlace in interface GenericFielda - the field elementaFieldElement add(GenericFieldElement a, GenericFieldElement b)
GenericFieldb to a, i.e. performs the operation
a += b.add in interface GenericFielda - the first addendb - the second addenda and bFieldElement subtract(GenericFieldElement a, GenericFieldElement b)
GenericFieldb from a, i.e. performs the operation
a -= b.subtract in interface GenericFielda - the minuendb - the subtrahenda and bFieldElement multiply(GenericFieldElement a, GenericFieldElement b)
GenericFielda by b, i.e. performs the operation
a *= b.multiply in interface GenericFielda - the first factorb - the second factora and bFieldElement multiplyOutOfPlace(GenericFieldElement a, GenericFieldElement b)
GenericFielda by b, i.e. performs the operation
a *= b, where a new object holding the result is created.multiplyOutOfPlace in interface GenericFielda - the first factorb - the second factora and bFieldElement multiply(GenericFieldElement a, BigInteger n)
GenericFielda by n, i.e. performs the operation
a *= n.multiply in interface GenericFielda - the first factorn - the second factora and nFieldElement multiplyOutOfPlace(GenericFieldElement a, BigInteger n)
GenericFielda by n, i.e. performs the operation
a *= n, where a new object holding the result is created.multiplyOutOfPlace in interface GenericFielda - the first factorn - the second factora and nFieldElement divide(GenericFieldElement a, GenericFieldElement b)
GenericFielda by b, i.e. performs the operation
a /= b.divide in interface GenericFielda - the dividendb - the divisora and bFieldElement invert(GenericFieldElement a)
GenericFielda, i.e. performs the operation
a = a^(-1).invert in interface GenericFielda - the field elementaFieldElement square(GenericFieldElement a)
GenericFielda, i.e. performs the operation a *= a.square in interface GenericFielda - the field elementaFieldElement squareOutOfPlace(GenericFieldElement a)
GenericFielda, i.e. performs the operation a*a,
where a new object holding the result is created.squareOutOfPlace in interface GenericFielda - the field elementaFieldElement exponentiate(GenericFieldElement a, BigInteger n)
GenericFielda to the power n, i.e. performs the
operation a = a^n.exponentiate in interface GenericFielda - the field elementn - the exponentnth power of
aFieldElement exponentiateByPowerOf2(GenericFieldElement a, int n)
GenericFielda to the power 2n.exponentiateByPowerOf2 in interface GenericFielda - the field elementn - the exponentFieldElement getOne()
GenericFieldgetOne in interface GenericFieldFieldElement getZero()
GenericFieldgetZero in interface GenericFieldFieldElement squareRoot(FieldElement a)
a - the field elementaFieldElement newElement(BigInteger b)
BigInteger representation.b - the BigIntegerFieldElement newElement(byte[] b)
byte[].newElement in interface GenericFieldb - the element encoded as byte[] in little-endian orderiaik.asn1.SEQUENCE toASN1Object()
byte[] toByteArray(FieldElement a)
byte[] representation.a - the field elementbyte[]Copyright © 2011–2022 Stiftung SIC. All rights reserved.