Bouncy Castle Cryptography 1.21

org.bouncycastle.math.ec
Class ECFieldElementFp

java.lang.Object
  |
  +--org.bouncycastle.math.ec.ECFieldElement
        |
        +--org.bouncycastle.math.ec.ECFieldElementFp
All Implemented Interfaces:
ECConstants

public class ECFieldElementFp
extends ECFieldElement


Field Summary
 
Fields inherited from interface org.bouncycastle.math.ec.ECConstants
ONE, ZERO
 
Constructor Summary
ECFieldElementFp(java.math.BigInteger q, java.math.BigInteger x)
           
 
Method Summary
 ECFieldElement add(ECFieldElement b)
           
 ECFieldElement divide(ECFieldElement b)
           
 java.lang.String getFieldName()
          return the field name for this field.
 ECFieldElement invert()
           
 ECFieldElement multiply(ECFieldElement b)
           
 ECFieldElement negate()
           
 ECFieldElement sqrt()
           
 ECFieldElement square()
           
 ECFieldElement subtract(ECFieldElement b)
           
 
Methods inherited from class org.bouncycastle.math.ec.ECFieldElement
equals, toBigInteger
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECFieldElementFp

public ECFieldElementFp(java.math.BigInteger q,
                        java.math.BigInteger x)
Method Detail

getFieldName

public java.lang.String getFieldName()
return the field name for this field.

Specified by:
getFieldName in class ECFieldElement
Returns:
the string "Fp".

add

public ECFieldElement add(ECFieldElement b)
Specified by:
add in class ECFieldElement

subtract

public ECFieldElement subtract(ECFieldElement b)
Specified by:
subtract in class ECFieldElement

multiply

public ECFieldElement multiply(ECFieldElement b)
Specified by:
multiply in class ECFieldElement

divide

public ECFieldElement divide(ECFieldElement b)
Specified by:
divide in class ECFieldElement

negate

public ECFieldElement negate()
Specified by:
negate in class ECFieldElement

square

public ECFieldElement square()
Specified by:
square in class ECFieldElement

invert

public ECFieldElement invert()
Specified by:
invert in class ECFieldElement

sqrt

public ECFieldElement sqrt()
Specified by:
sqrt in class ECFieldElement

Bouncy Castle Cryptography 1.21