org.bouncycastle.math.ec

Class ECFieldElement.Fp

Enclosing Class:
ECFieldElement
Implemented Interfaces:
ECConstants

public static class ECFieldElement.Fp
extends ECFieldElement

Nested Class Summary

Nested classes/interfaces inherited from class org.bouncycastle.math.ec.ECFieldElement

ECFieldElement.Fp

Fields inherited from interface org.bouncycastle.math.ec.ECConstants

ONE, ZERO

Constructor Summary

Fp(BigInteger q, BigInteger x)

Method Summary

ECFieldElement
add(ECFieldElement b)
ECFieldElement
divide(ECFieldElement b)
String
getFieldName()
return the field name for this field.
ECFieldElement
invert()
ECFieldElement
multiply(ECFieldElement b)
ECFieldElement
negate()
ECFieldElement
sqrt()
return a sqrt root - the routine verifies that the calculation returns the right value - if none exists it returns null.
ECFieldElement
square()
ECFieldElement
subtract(ECFieldElement b)

Methods inherited from class org.bouncycastle.math.ec.ECFieldElement

add, divide, equals, getFieldName, invert, multiply, negate, sqrt, square, subtract, toBigInteger

Constructor Details

Fp

public Fp(BigInteger q,
          BigInteger x)

Method Details

add

public ECFieldElement add(ECFieldElement b)
Overrides:
add in interface ECFieldElement


divide

public ECFieldElement divide(ECFieldElement b)
Overrides:
divide in interface ECFieldElement


getFieldName

public String getFieldName()
return the field name for this field.
Overrides:
getFieldName in interface ECFieldElement

Returns:
the string "Fp".


invert

public ECFieldElement invert()
Overrides:
invert in interface ECFieldElement


multiply

public ECFieldElement multiply(ECFieldElement b)
Overrides:
multiply in interface ECFieldElement


negate

public ECFieldElement negate()
Overrides:
negate in interface ECFieldElement


sqrt

public ECFieldElement sqrt()
return a sqrt root - the routine verifies that the calculation returns the right value - if none exists it returns null.
Overrides:
sqrt in interface ECFieldElement


square

public ECFieldElement square()
Overrides:
square in interface ECFieldElement


subtract

public ECFieldElement subtract(ECFieldElement b)
Overrides:
subtract in interface ECFieldElement