# ECCurveECCurveECCurveECCurve Struct

## 定义

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

ECCurveECCurveECCurveECCurve

## 注解

CurveType使用字段确定曲线是命名曲线还是显式曲线 (质数或特征2曲线)。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).

## 字段

 A A A A 显式曲线的第 1 个系数。The first coefficient for an explicit curve. Weierstrass、Montgomery 和 Twisted Edwards 短曲线的 `A`。`A` for short Weierstrass, Montgomery, and Twisted Edwards curves. B B B B 显式曲线的第 2 个系数。The second coefficient for an explicit curve. 对于 Weierstrass 短曲线，为 `B`；对于 Twisted Edwards 曲线，为 `d`。`B` for short Weierstrass and `d` for Twisted Edwards curves. Cofactor Cofactor Cofactor Cofactor 曲线的余因子。The cofactor of the curve. CurveType CurveType CurveType CurveType 确定 ECCurve 对象的组成。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 哈希算法的名称，此算法用于根据 ANSI X9.62 生成算法从 Seed 生成曲线系数（A 和 B）。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. 仅适用于特征 2 曲线。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 ANSI X9.62 生成算法下系数生成的种子值。The seed value for coefficient generation under the ANSI X9.62 generation algorithm. 仅适用于显式曲线。Applies only to explicit curves.

## 属性

 IsCharacteristic2 IsCharacteristic2 IsCharacteristic2 IsCharacteristic2 获取一个值，该值指示曲线类型是否指示显式特征 2 曲线。Gets a value that indicates whether the curve type indicates an explicit characteristic 2 curve. IsExplicit IsExplicit IsExplicit IsExplicit 获取一个值，该值指示曲线类型是否指示显式曲线（素数曲线或特征 2 曲线）。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.

## 方法

 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) 使用指定的 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. 如果结构无效，将引发 CryptographicException 异常。Throws a CryptographicException exception if the structure is not valid.