2010 FRC Java API


com.sun.squawk.security.ecc
Class ECCurveFp

java.lang.Object
  extended by com.sun.squawk.security.ecc.ECCurveFp

public final class ECCurveFp
extends Object


Field Summary
protected  int[] a
           
protected  boolean aIsMinus3
           
protected  int[] b
           
protected  FFA ffa
           
protected  PrimeField field
           
protected  ECPoint generator
           
protected  int h
           
protected  PrimeField order
           
protected  int[] t1
           
protected  int[] t2
           
protected  int[] t3
           
protected  int[] t4
           
 
Method Summary
 void add(ECPoint a, ECPoint b)
           
 void copy(ECPoint dst, ECPoint src)
           
 boolean decodePoint(ECPoint point, byte[] data, int offset, int length)
           
 int encodePoint(ECPoint point, byte[] data, int offset)
           
 int[] getA()
           
 int[] getB()
           
 PrimeField getField()
           
 ECPoint getGenerator()
           
 int getH()
           
static ECCurveFp getInstance()
           
 int[] getN()
           
 PrimeField getOrder()
           
 boolean isOnCurve(ECPoint o1)
           
 void makeAffine(ECPoint a)
           
 void multiply(ECPoint R, int[] k)
           
 void multiplySum(ECPoint R1, int[] k1, ECPoint R2, int[] k2)
           
 void negate(ECPoint a)
           
 void twice(ECPoint a)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aIsMinus3

protected final boolean aIsMinus3
See Also:
Constant Field Values

a

protected final int[] a

b

protected final int[] b

ffa

protected final FFA ffa

field

protected final PrimeField field

generator

protected final ECPoint generator

h

protected final int h
See Also:
Constant Field Values

order

protected final PrimeField order

t1

protected final int[] t1

t2

protected final int[] t2

t3

protected final int[] t3

t4

protected final int[] t4
Method Detail

add

public void add(ECPoint a,
                ECPoint b)

copy

public void copy(ECPoint dst,
                 ECPoint src)

decodePoint

public boolean decodePoint(ECPoint point,
                           byte[] data,
                           int offset,
                           int length)

encodePoint

public int encodePoint(ECPoint point,
                       byte[] data,
                       int offset)

getA

public int[] getA()

getB

public int[] getB()

getField

public PrimeField getField()

getGenerator

public ECPoint getGenerator()

getH

public int getH()

getInstance

public static ECCurveFp getInstance()

getN

public int[] getN()

getOrder

public PrimeField getOrder()

isOnCurve

public boolean isOnCurve(ECPoint o1)

makeAffine

public void makeAffine(ECPoint a)

multiply

public void multiply(ECPoint R,
                     int[] k)

multiplySum

public void multiplySum(ECPoint R1,
                        int[] k1,
                        ECPoint R2,
                        int[] k2)

negate

public void negate(ECPoint a)

twice

public void twice(ECPoint a)

2010 FRC Java API


Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.