DSA.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個用於執行非對稱演算法的密碼物件。
多載
| 名稱 | Description |
|---|---|
| Create() |
建立用於執行非對稱演算法的預設密碼物件。 |
| Create(Int32) |
建立一個新的臨時 DSA 金鑰,且其大小符合指定金鑰大小。 |
| Create(DSAParameters) |
建立一個新的臨時 DSA 金鑰,並包含指定的 DSA 金鑰參數。 |
| Create(String) |
已淘汰.
建立用於執行非對稱演算法的指定密碼學物件。 |
Create()
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
建立用於執行非對稱演算法的預設密碼物件。
public:
static System::Security::Cryptography::DSA ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
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("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : unit -> System.Security.Cryptography.DSA
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
Public Shared Function Create () As DSA
傳回
用於執行非對稱演算法的密碼物件。
- 屬性
另請參閱
適用於
Create(Int32)
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
建立一個新的臨時 DSA 金鑰,且其大小符合指定金鑰大小。
public:
static System::Security::Cryptography::DSA ^ Create(int keySizeInBits);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
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("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : int -> System.Security.Cryptography.DSA
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
Public Shared Function Create (keySizeInBits As Integer) As DSA
參數
- keySizeInBits
- Int32
鑰匙大小,分成小塊。
傳回
一個新的臨時 DSA 金鑰,且具有指定金鑰大小。
- 屬性
例外狀況
keySizeInBits不允許。LegalKeySizes
適用於
Create(DSAParameters)
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- DSA.cs
建立一個新的臨時 DSA 金鑰,並包含指定的 DSA 金鑰參數。
public:
static System::Security::Cryptography::DSA ^ Create(System::Security::Cryptography::DSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
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("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
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
Public Shared Function Create (parameters As DSAParameters) As DSA
參數
- parameters
- DSAParameters
演算法的 DSA 參數。
傳回
一個新的臨時DSA金鑰。
- 屬性
適用於
Create(String)
- 來源:
- DSA.cs
- 來源:
- DSA.cs
- 來源:
- 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);
[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.DSA? Create(string algName);
public static System.Security.Cryptography.DSA? Create(string algName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.DSA? Create(string algName);
public static System.Security.Cryptography.DSA Create(string algName);
[<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.DSA
static member Create : string -> System.Security.Cryptography.DSA
[<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.DSA
Public Shared Function Create (algName As String) As DSA
參數
傳回
用於執行非對稱演算法的密碼物件。
- 屬性
備註
對於 DSA,請使用名稱為 System.Security.Cryptography.DSA。