Breyta

Deila með


ECCurve Struct

Definition

Represents an elliptic curve.

public value class ECCurve
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public struct ECCurve
public struct ECCurve
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type ECCurve = struct
type ECCurve = struct
Public Structure ECCurve
Inheritance
ECCurve
Attributes

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

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

B

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

Cofactor

The cofactor of the curve.

CurveType

Identifies the composition of the ECCurve object.

G

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

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

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

Polynomial

The curve polynomial. Applies only to characteristic 2 curves.

Prime

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

Seed

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

Properties

IsCharacteristic2

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

IsExplicit

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

IsNamed

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

IsPrime

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

Oid

Gets the identifier of a named curve.

Methods

CreateFromFriendlyName(String)

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

CreateFromOid(Oid)

Creates a named curve using the specified Oid object.

CreateFromValue(String)

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

Validate()

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

Applies to