DSA.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立用來執行非對稱演算法的密碼編譯物件。
多載
Create() |
建立用來執行非對稱演算法之預設密碼編譯物件。 |
Create(Int32) |
以指定的金鑰大小建立新的暫時 DSA 金鑰。 |
Create(DSAParameters) |
以指定的 DSA 金鑰參數建立新的暫時 DSA 金鑰。 |
Create(String) |
已淘汰.
建立用來執行非對稱演算法之指定密碼編譯物件。 |
Create()
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- 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)
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- 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)
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- 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)
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- 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。