Top Fields Constructors Methods
org.bouncycastle.math.ec.custom.djb

public Class Curve25519

extends AbstractFp
Class Inheritance
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.math.ec.AbstractECLookupTable, .ECConstants, .ECCurve, .ECFieldElement, .ECLookupTable, .ECPoint, org.bouncycastle.math.raw.Nat256, org.bouncycastle.util.encoders.Hex

Field Summary

Modifier and TypeField and Description
private static final BigInteger
private static final BigInteger
private static final ECFieldElement[]
private static final int
protected Curve25519Point
public static final BigInteger
q

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ECCurve
public ECLookupTable
createCacheSafeLookupTable(ECPoint[] points, int off, final int len)

Overrides org.bouncycastle.math.ec.ECCurve.createCacheSafeLookupTable.

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

protected ECPoint
protected ECPoint
public ECFieldElement
public int
public ECPoint
public BigInteger
getQ()

public ECFieldElement
public ECFieldElement
public boolean
Inherited from org.bouncycastle.math.ec.ECCurve.AbstractFp:
decompressPointisValidFieldElement

Field Detail

C_aback to summary
private static final BigInteger C_a
C_bback to summary
private static final BigInteger C_b
CURVE25519_AFFINE_ZSback to summary
private static final ECFieldElement[] CURVE25519_AFFINE_ZS
CURVE25519_DEFAULT_COORDSback to summary
private static final int CURVE25519_DEFAULT_COORDS
infinityback to summary
protected Curve25519Point infinity
qback to summary
public static final BigInteger q

Constructor Detail

Curve25519back to summary
public Curve25519()

Method Detail

cloneCurveback to summary
protected ECCurve cloneCurve()

Implements abstract org.bouncycastle.math.ec.ECCurve.cloneCurve.

createCacheSafeLookupTableback to summary
public ECLookupTable createCacheSafeLookupTable(ECPoint[] points, int off, final int len)

Overrides org.bouncycastle.math.ec.ECCurve.createCacheSafeLookupTable.

Doc from org.bouncycastle.math.ec.ECCurve.createCacheSafeLookupTable.

Create a cache-safe lookup table for the specified sequence of points. All the points MUST belong to this ECCurve instance, and MUST already be normalized.

createRawPointback to summary
protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y)

Implements abstract org.bouncycastle.math.ec.ECCurve.createRawPoint.

createRawPointback to summary
protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs)

Implements abstract org.bouncycastle.math.ec.ECCurve.createRawPoint.

fromBigIntegerback to summary
public ECFieldElement fromBigInteger(BigInteger x)

Implements abstract org.bouncycastle.math.ec.ECCurve.fromBigInteger.

getFieldSizeback to summary
public int getFieldSize()

Implements abstract org.bouncycastle.math.ec.ECCurve.getFieldSize.

getInfinityback to summary
public ECPoint getInfinity()

Implements abstract org.bouncycastle.math.ec.ECCurve.getInfinity.

getQback to summary
public BigInteger getQ()
randomFieldElementback to summary
public ECFieldElement randomFieldElement(SecureRandom r)

Overrides org.bouncycastle.math.ec.ECCurve.AbstractFp.randomFieldElement.

randomFieldElementMultback to summary
public ECFieldElement randomFieldElementMult(SecureRandom r)

Overrides org.bouncycastle.math.ec.ECCurve.AbstractFp.randomFieldElementMult.

supportsCoordinateSystemback to summary
public boolean supportsCoordinateSystem(int coord)

Overrides org.bouncycastle.math.ec.ECCurve.supportsCoordinateSystem.