Class ECPoint
- Namespace
- Org.BouncyCastle.Math.EC
- Assembly
- BouncyCastle.Cryptography.dll
public abstract class ECPoint
- Inheritance
-
ECPoint
- Derived
- Inherited Members
Constructors
ECPoint(ECCurve, ECFieldElement, ECFieldElement)
protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y)
Parameters
curveECCurvexECFieldElementyECFieldElement
Fields
EMPTY_ZS
protected static readonly ECFieldElement[] EMPTY_ZS
Field Value
m_curve
protected readonly ECCurve m_curve
Field Value
m_preCompTable
protected IDictionary<string, PreCompInfo> m_preCompTable
Field Value
m_x
protected readonly ECFieldElement m_x
Field Value
m_y
protected readonly ECFieldElement m_y
Field Value
m_zs
protected readonly ECFieldElement[] m_zs
Field Value
Properties
AffineXCoord
public virtual ECFieldElement AffineXCoord { get; }
Property Value
AffineYCoord
public virtual ECFieldElement AffineYCoord { get; }
Property Value
CompressionYTilde
protected abstract bool CompressionYTilde { get; }
Property Value
Curve
public virtual ECCurve Curve { get; }
Property Value
CurveCoordinateSystem
protected virtual int CurveCoordinateSystem { get; }
Property Value
IsInfinity
public bool IsInfinity { get; }
Property Value
RawXCoord
protected ECFieldElement RawXCoord { get; }
Property Value
RawYCoord
protected ECFieldElement RawYCoord { get; }
Property Value
RawZCoords
protected ECFieldElement[] RawZCoords { get; }
Property Value
XCoord
public virtual ECFieldElement XCoord { get; }
Property Value
YCoord
public virtual ECFieldElement YCoord { get; }
Property Value
Methods
Add(ECPoint)
public abstract ECPoint Add(ECPoint b)
Parameters
bECPoint
Returns
CheckNormalized()
protected virtual void CheckNormalized()
CreateScaledPoint(ECFieldElement, ECFieldElement)
protected virtual ECPoint CreateScaledPoint(ECFieldElement sx, ECFieldElement sy)
Parameters
sxECFieldElementsyECFieldElement
Returns
Detach()
protected abstract ECPoint Detach()
Returns
EncodeTo(bool, byte[], int)
public abstract void EncodeTo(bool compressed, byte[] buf, int off)
Parameters
EncodeTo(bool, Span<byte>)
public abstract void EncodeTo(bool compressed, Span<byte> buf)
Parameters
Equals(ECPoint)
public virtual bool Equals(ECPoint other)
Parameters
otherECPoint
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetDetachedPoint()
public ECPoint GetDetachedPoint()
Returns
GetEncoded()
public virtual byte[] GetEncoded()
Returns
- byte[]
GetEncoded(bool)
public abstract byte[] GetEncoded(bool compressed)
Parameters
compressedbool
Returns
- byte[]
GetEncodedLength(bool)
public abstract int GetEncodedLength(bool compressed)
Parameters
compressedbool
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetInitialZCoords(ECCurve)
protected static ECFieldElement[] GetInitialZCoords(ECCurve curve)
Parameters
curveECCurve
Returns
GetZCoord(int)
public virtual ECFieldElement GetZCoord(int index)
Parameters
indexint
Returns
GetZCoords()
public virtual ECFieldElement[] GetZCoords()
Returns
IsNormalized()
public virtual bool IsNormalized()
Returns
IsValid()
public bool IsValid()
Returns
Multiply(BigInteger)
public abstract ECPoint Multiply(BigInteger b)
Parameters
Returns
Negate()
public abstract ECPoint Negate()
Returns
Normalize()
public virtual ECPoint Normalize()
Returns
SatisfiesCurveEquation()
protected abstract bool SatisfiesCurveEquation()
Returns
SatisfiesOrder()
protected virtual bool SatisfiesOrder()
Returns
ScaleX(ECFieldElement)
public virtual ECPoint ScaleX(ECFieldElement scale)
Parameters
scaleECFieldElement
Returns
ScaleXNegateY(ECFieldElement)
public virtual ECPoint ScaleXNegateY(ECFieldElement scale)
Parameters
scaleECFieldElement
Returns
ScaleY(ECFieldElement)
public virtual ECPoint ScaleY(ECFieldElement scale)
Parameters
scaleECFieldElement
Returns
ScaleYNegateX(ECFieldElement)
public virtual ECPoint ScaleYNegateX(ECFieldElement scale)
Parameters
scaleECFieldElement
Returns
Subtract(ECPoint)
public abstract ECPoint Subtract(ECPoint b)
Parameters
bECPoint
Returns
ThreeTimes()
public virtual ECPoint ThreeTimes()
Returns
TimesPow2(int)
public virtual ECPoint TimesPow2(int e)
Parameters
eint
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Twice()
public abstract ECPoint Twice()
Returns
TwicePlus(ECPoint)
public virtual ECPoint TwicePlus(ECPoint b)
Parameters
bECPoint