DSA.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建用于执行非对称算法的加密对象。
重载
Create() |
创建用于执行不对称算法的默认加密对象。 |
Create(Int32) |
创建具有指定密钥大小的新临时 DSA 密钥。 |
Create(DSAParameters) |
创建具有指定 DSA 密钥参数的新临时 DSA 密钥。 |
Create(String) |
已过时.
创建用于执行不对称算法的指定加密对象。 |
Create()
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
创建用于执行不对称算法的默认加密对象。
public:
static System::Security::Cryptography::DSA ^ Create();
public static System.Security.Cryptography.DSA Create ();
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create ();
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.DSA Create ();
static member Create : unit -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : unit -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.DSA
Public Shared Function Create () As DSA
返回
一个加密对象,用于执行不对称算法。
- 属性
另请参阅
适用于
Create(Int32)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
创建具有指定密钥大小的新临时 DSA 密钥。
public:
static System::Security::Cryptography::DSA ^ Create(int keySizeInBits);
public static System.Security.Cryptography.DSA Create (int keySizeInBits);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create (int keySizeInBits);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.DSA Create (int keySizeInBits);
static member Create : int -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : int -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : int -> System.Security.Cryptography.DSA
Public Shared Function Create (keySizeInBits As Integer) As DSA
参数
- keySizeInBits
- Int32
密钥大小(以位为单位)。
返回
具有指定密钥大小的新临时 DSA 密钥。
- 属性
例外
LegalKeySizes 不允许 keySizeInBits
。
适用于
Create(DSAParameters)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
创建具有指定 DSA 密钥参数的新临时 DSA 密钥。
public:
static System::Security::Cryptography::DSA ^ Create(System::Security::Cryptography::DSAParameters parameters);
public static System.Security.Cryptography.DSA Create (System.Security.Cryptography.DSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create (System.Security.Cryptography.DSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.DSA Create (System.Security.Cryptography.DSAParameters parameters);
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
Public Shared Function Create (parameters As DSAParameters) As DSA
参数
- parameters
- DSAParameters
DSA 算法的参数。
返回
新的临时 DSA 密钥。
- 属性
适用于
Create(String)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
注意
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
创建用于执行不对称算法的指定加密对象。
public:
static System::Security::Cryptography::DSA ^ Create(System::String ^ algName);
public static System.Security.Cryptography.DSA? Create (string algName);
[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.DSA? Create (string algName);
public static System.Security.Cryptography.DSA Create (string algName);
static member Create : string -> System.Security.Cryptography.DSA
[<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.DSA
Public Shared Function Create (algName As String) As DSA
参数
返回
一个加密对象,用于执行不对称算法。
- 属性
注解
对于 DSA,请使用名称 System.Security.Cryptography.DSA。