FileDocCategorySizeDatePackage
ECFieldElement.javaAPI DocAzureus 3.0.3.42938Tue Jun 08 05:12:56 BST 2004org.bouncycastle.math.ec

ECFieldElement

public abstract class ECFieldElement extends Object implements ECConstants

Fields Summary
BigInteger
x
BigInteger
p
Constructors Summary
protected ECFieldElement(BigInteger q, BigInteger x)

        if (x.compareTo(q) >= 0)
        {
            throw new IllegalArgumentException("x value too large in field element");
        }

		this.x = x;
		this.p = q; // curve.getQ();
	
Methods Summary
public abstract org.bouncycastle.math.ec.ECFieldElementadd(org.bouncycastle.math.ec.ECFieldElement b)

public abstract org.bouncycastle.math.ec.ECFieldElementdivide(org.bouncycastle.math.ec.ECFieldElement b)

public booleanequals(java.lang.Object other)

		if ( other == this )
			return true;

		if ( !(other instanceof ECFieldElement) )
			return false;

		ECFieldElement o = (ECFieldElement)other;
		return p.equals(o.p) && x.equals(o.x);
	
public abstract java.lang.StringgetFieldName()

public abstract org.bouncycastle.math.ec.ECFieldElementinvert()

public abstract org.bouncycastle.math.ec.ECFieldElementmultiply(org.bouncycastle.math.ec.ECFieldElement b)

public abstract org.bouncycastle.math.ec.ECFieldElementnegate()

public abstract org.bouncycastle.math.ec.ECFieldElementsqrt()

public abstract org.bouncycastle.math.ec.ECFieldElementsquare()

public abstract org.bouncycastle.math.ec.ECFieldElementsubtract(org.bouncycastle.math.ec.ECFieldElement b)

public java.math.BigIntegertoBigInteger()

		return x;