Top Description Inners Fields Constructors Methods
org.bouncycastle.math.ec

public abstract Class ECCurve

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.math.ec.ECCurve.AbstractFp, org.bouncycastle.math.ec.ECCurve.AbstractF2m
Imports
java.math.BigInteger, java.security.SecureRandom, java.util.HashMap, .Map, .Random, org.bouncycastle.crypto.fips.FipsAlgorithm, .FipsStatus, org.bouncycastle.math.ec.endo.ECEndomorphism, .GLVEndomorphism, org.bouncycastle.math.field.FiniteField, .FiniteFields, org.bouncycastle.math.internal.Nat, org.bouncycastle.util.BigIntegers, .Integers, .Properties

base class for an elliptic curve

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
public abstract static class
public class
public static class
ECCurve.F2m

Elliptic curves over F2m.

public static class
ECCurve.Fp

Elliptic curve over Fp

Field Summary

Modifier and TypeField and Description
protected ECFieldElement
a

protected ECFieldElement
b

protected BigInteger
protected int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
protected ECEndomorphism
protected FiniteField
protected ECMultiplier
protected BigInteger

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
checkPoints(ECPoint[] points)

protected void
checkPoints(ECPoint[] points, int off, int len)

protected abstract ECCurve
public synchronized ECCurve.Config
public ECLookupTable
createCacheSafeLookupTable(final ECPoint[] points, int off, final int len)

Create a cache-safe lookup table for the specified sequence of points.

protected ECMultiplier
public ECPoint
protected abstract ECPoint
protected abstract ECPoint
public ECPoint

Returns:

The decoded point.
decodePoint
(byte[] encoded)

Decode a point on this curve from its ASN.1 encoding.

protected abstract ECPoint
decompressPoint(int yTilde, BigInteger X1)

public boolean
equals(ECCurve other)

public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public abstract ECFieldElement
public ECFieldElement
getA()

public static int[]
public ECFieldElement
getB()

public BigInteger
public int
public ECEndomorphism
public FiniteField
public abstract int
public abstract ECPoint
public synchronized ECMultiplier
getMultiplier()

Sets the default ECMultiplier, unless already set.

public BigInteger
public PreCompInfo
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.
public ECPoint
public abstract boolean
public void
normalizeAll(ECPoint[]
An array of points that will be updated in place with their normalized versions, where necessary
points
)

Normalization ensures that any projective coordinate is 1, and therefore that the x, y coordinates reflect those of the equivalent point in an affine coordinate system.

public void
normalizeAll(ECPoint[]
An array of points that will be updated in place with their normalized versions, where necessary
points
,
int
The start of the range of points to normalize
off
,
int
The length of the range of points to normalize
len
,
ECFieldElement
The (optional) z-scaling factor - can be null
iso
)

Normalization ensures that any projective coordinate is 1, and therefore that the x, y coordinates reflect those of the equivalent point in an affine coordinate system.

public PreCompInfo
precompute(ECPoint
The ECPoint to store precomputations for.
point
,
String
A String used to index precomputations of different types.
name
,
PreCompCallback
Called to calculate the PreCompInfo.
callback
)

Compute a PreCompInfo for a point on this curve, under a given name.

public abstract ECFieldElement
public boolean
public ECPoint
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait