ECDsa.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建椭圆曲线数字签名算法(ECDSA)实现的新实例。
重载
| 名称 | 说明 |
|---|---|
| Create() |
创建椭圆曲线数字签名算法(ECDSA)的默认实现的新实例。 |
| Create(ECCurve) |
使用新生成的密钥在指定曲线上创建椭圆曲线数字签名算法(ECDSA)的默认实现的新实例。 |
| Create(ECParameters) |
使用指定的参数作为键创建椭圆曲线数字签名算法(ECDSA)的默认实现的新实例。 |
| Create(String) |
已过时.
创建椭圆曲线数字签名算法(ECDSA)的指定实现的新实例。 |
Create()
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
创建椭圆曲线数字签名算法(ECDSA)的默认实现的新实例。
public:
static System::Security::Cryptography::ECDsa ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDsa Create();
public static System.Security.Cryptography.ECDsa Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.ECDsa
static member Create : unit -> System.Security.Cryptography.ECDsa
Public Shared Function Create () As ECDsa
返回
此类的默认实现(ECDsaCng)的新实例。
- 属性
适用于
Create(ECCurve)
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
使用新生成的密钥在指定曲线上创建椭圆曲线数字签名算法(ECDSA)的默认实现的新实例。
public:
static System::Security::Cryptography::ECDsa ^ Create(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECCurve curve);
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsa
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsa
Public Shared Function Create (curve As ECCurve) As ECDsa
参数
- curve
- ECCurve
用于生成密钥的曲线。
返回
此类的默认实现(ECDsaCng)的新实例。
- 属性
另请参阅
适用于
Create(ECParameters)
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
- Source:
- ECDsa.Create.OpenSsl.cs
使用指定的参数作为键创建椭圆曲线数字签名算法(ECDSA)的默认实现的新实例。
public:
static System::Security::Cryptography::ECDsa ^ Create(System::Security::Cryptography::ECParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECParameters parameters);
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECParameters parameters);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDsa
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDsa
Public Shared Function Create (parameters As ECParameters) As ECDsa
参数
- parameters
- ECParameters
表示要使用的密钥的参数。
返回
此类的默认实现(ECDsaCng)的新实例。
- 属性
另请参阅
适用于
Create(String)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
注意
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
创建椭圆曲线数字签名算法(ECDSA)的指定实现的新实例。
public:
static System::Security::Cryptography::ECDsa ^ Create(System::String ^ algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.ECDsa? Create(string algorithm);
public static System.Security.Cryptography.ECDsa? Create(string algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.ECDsa? Create(string algorithm);
public static System.Security.Cryptography.ECDsa Create(string algorithm);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.ECDsa
static member Create : string -> System.Security.Cryptography.ECDsa
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
static member Create : string -> System.Security.Cryptography.ECDsa
Public Shared Function Create (algorithm As String) As ECDsa
参数
- algorithm
- String
ECDSA 实现的名称。 以下字符串都引用相同的实现,这是.NET框架中当前唯一支持的实现:
“ECDsa”
“ECDsaCng”
“System.Security.Cryptography.ECDsaCng”
还可以提供自定义 ECDSA 实现的名称。
返回
此类的指定实现的新实例。 如果指定的算法名称不映射到 ECDSA 实现,此方法将 null返回。
- 属性
例外
参数 algorithm 为 null.
注解
如果开发对象自己的实现 ECDsa ,则可以使用 Create(String) 方法重载创建自定义 algorithm 字符串来指定实现。
如果为 algorithm 参数指定自定义值,该 CryptoConfig 对象将使用它来确定是否可以创建 ECDSA 对象。