ECCurve ECCurve ECCurve ECCurve Struct

Definition

Represents an elliptic curve.

public value class ECCurve
public struct ECCurve
type ECCurve = struct
Public Structure ECCurve
Inheritance

Remarks

Use the CurveType field to determine whether the curve is a named curve or an explicit curve (either a prime or a characteristic 2 curve).

Fields

A A A A

The first coefficient for an explicit curve. A for short Weierstrass, Montgomery, and Twisted Edwards curves.

B B B B

The second coefficient for an explicit curve. B for short Weierstrass and d for Twisted Edwards curves.

Cofactor Cofactor Cofactor Cofactor

The cofactor of the curve.

CurveType CurveType CurveType CurveType

Identifies the composition of the ECCurve object.

G G G G

The generator, or base point, for operations on the curve.

Hash Hash Hash Hash

The name of the hash algorithm which was used to generate the curve coefficients (A and B) from the Seed under the ANSI X9.62 generation algorithm. Applies only to explicit curves.

Order Order Order Order

The order of the curve. Applies only to explicit curves.

Polynomial Polynomial Polynomial Polynomial

The curve polynomial. Applies only to characteristic 2 curves.

Prime Prime Prime Prime

The prime specifying the base field. Applies only to prime curves.

Seed Seed Seed Seed

The seed value for coefficient generation under the ANSI X9.62 generation algorithm. Applies only to explicit curves.

Properties

IsCharacteristic2 IsCharacteristic2 IsCharacteristic2 IsCharacteristic2

Gets a value that indicates whether the curve type indicates an explicit characteristic 2 curve.

IsExplicit IsExplicit IsExplicit IsExplicit

Gets a value that indicates whether the curve type indicates an explicit curve (either prime or characteristic 2).

IsNamed IsNamed IsNamed IsNamed

Gets a value that indicates whether the curve type indicates a named curve.

IsPrime IsPrime IsPrime IsPrime

Gets a value that indicates whether the curve type indicates an explicit prime curve.

Oid Oid Oid Oid

Gets the identifier of a named curve.

Methods

CreateFromFriendlyName(String) CreateFromFriendlyName(String) CreateFromFriendlyName(String) CreateFromFriendlyName(String)

Creates a named curve using the specified friendly name of the identifier.

CreateFromOid(Oid) CreateFromOid(Oid) CreateFromOid(Oid) CreateFromOid(Oid)

Creates a named curve using the specified Oid object.

CreateFromValue(String) CreateFromValue(String) CreateFromValue(String) CreateFromValue(String)

Creates a named curve using the specified dotted-decimal representation of the identifier.

Validate() Validate() Validate() Validate()

Validates the integrity of the current curve. Throws a CryptographicException exception if the structure is not valid.

Applies to