Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Security.​Cryptography.​ECCurve

Assembly: System.Security.Cryptography

Represents an elliptic curve.

Fields and Constants

public byte[]
A
The first coefficient for an explicit curve. <c>A</c> for short Weierstrass, Montgomery, and Twisted Edwards curves.
public byte[]
B
The second coefficient for an explicit curve. <c>B</c> for short Weierstrass and <c>d</c> for Twisted Edwards curves.
public byte[]
Cofactor
The cofactor of the curve.
public ECCurveType
CurveType
Identifies the composition of the <see cref="T:System.Security.Cryptography.ECCurve" /> object.
public ECPoint
G
The generator, or base point, for operations on the curve.
public Nullable`1
Hash
The name of the hash algorithm which was used to generate the curve coefficients ( <see cref="F:System.Security.Cryptography.ECCurve.A" /> and <see cref="F:System.Security.Cryptography.ECCurve.B" /> ) from the <see cref="F:System.Security.Cryptography.ECCurve.Seed" /> under the ANSI X9.62 generation algorithm. Applies only to explicit curves.
public byte[]
Order
The order of the curve. Applies only to explicit curves.
public byte[]
Polynomial
The curve polynomial. Applies only to characteristic 2 curves.
public byte[]
Prime
The prime specifying the base field. Applies only to prime curves.
public byte[]
Seed
The seed value for coefficient generation under the ANSI X9.62 generation algorithm. Applies only to explicit curves.

Properties

public bool
IsCharacteristic2
Gets a value that indicates whether the curve type indicates an explicit characteristic 2 curve.
public bool
IsExplicit
Gets a value that indicates whether the curve type indicates an explicit curve (either prime or characteristic 2).
public bool
IsNamed
Gets a value that indicates whether the curve type indicates a named curve.
public bool
IsPrime
Gets a value that indicates whether the curve type indicates an explicit prime curve.
public Oid
Oid
Gets the identifier of a named curve.

Methods

public void
Validate​()
Validates the integrity of the current curve. Throws a <see cref="T:System.Security.Cryptography.CryptographicException" /> exception if the structure is not valid.
public bool
Equals​(object obj)
Inherited from ValueType
public int
GetHashCode​()
Inherited from ValueType
public string
ToString​()
Inherited from ValueType
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object