DSAOpenSsl 建構函式

定義

多載

DSAOpenSsl()

使用 2048 位元的預設金鑰大小,初始化 DSAOpenSsl 類別的新執行個體。

DSAOpenSsl(Int32)

使用指定的金鑰大小,初始化 DSAOpenSsl 類別的新執行個體。

DSAOpenSsl(IntPtr)

從以 表示 DSA* 的現有 OpenSSL 索引鍵, DSAOpenSsl 初始化 類別的新實例。

DSAOpenSsl(DSAParameters)

根據現有的金鑰,初始化 DSAOpenSsl 類別的新執行個體以及匯入參數。

DSAOpenSsl(SafeEvpPKeyHandle)

從表示為 EVP_PKEY* 的現有 OpenSSL 索引鍵, DSAOpenSsl 初始化 類別的新實例。

DSAOpenSsl()

來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs

使用 2048 位元的預設金鑰大小,初始化 DSAOpenSsl 類別的新執行個體。

public:
 DSAOpenSsl();
public DSAOpenSsl ();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl ();
Public Sub New ()
屬性

備註

此建構函式不會立即產生新的 DSA 公開/私密金鑰,它只會設定大小,以在需要金鑰時用來產生金鑰。 如果索引鍵是透過 ImportParameters 方法載入或其他索引鍵匯入方法,則來自這個建構函式的金鑰大小並無意義。

另請參閱

適用於

DSAOpenSsl(Int32)

來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs

使用指定的金鑰大小,初始化 DSAOpenSsl 類別的新執行個體。

public:
 DSAOpenSsl(int keySize);
public DSAOpenSsl (int keySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (int keySize);
new System.Security.Cryptography.DSAOpenSsl : int -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : int -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (keySize As Integer)

參數

keySize
Int32

需要金鑰時,所要產生的金鑰大小。

屬性

例外狀況

這個實作不支援 keySize 值。

備註

此建構函式不會立即產生新的 DSA 公開/私密金鑰,它只會設定大小,以在需要金鑰時用來產生金鑰。 如果透過 ImportParameters 方法或其他索引鍵匯入方法載入索引鍵, keySize 則提供給這個建構函式的 沒有意義。

另請參閱

適用於

DSAOpenSsl(IntPtr)

來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs

從以 表示 DSA* 的現有 OpenSSL 索引鍵, DSAOpenSsl 初始化 類別的新實例。

public:
 DSAOpenSsl(IntPtr handle);
public DSAOpenSsl (IntPtr handle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (IntPtr handle);
new System.Security.Cryptography.DSAOpenSsl : nativeint -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : nativeint -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (handle As IntPtr)

參數

handle
IntPtr

nativeint

要作為索引鍵使用的 OpenSSL DSA* 值。

屬性

例外狀況

handleZero

handle 不是有效的 DSA*

備註

重要

OpenSSL 支援在同一個進程中載入多個程式庫版本。 呼叫此建構函式之前,請確認指標值來自這個類別所使用的相同 OpenSSL 版本。 如需詳細資訊,請參閱OpenSslVersion

另請參閱

適用於

DSAOpenSsl(DSAParameters)

來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs

根據現有的金鑰,初始化 DSAOpenSsl 類別的新執行個體以及匯入參數。

public:
 DSAOpenSsl(System::Security::Cryptography::DSAParameters parameters);
public DSAOpenSsl (System.Security.Cryptography.DSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (System.Security.Cryptography.DSAParameters parameters);
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (parameters As DSAParameters)

參數

parameters
DSAParameters

要匯入的金鑰參數。

屬性

例外狀況

parameters 遺漏必要欄位。

-或-

parameters 具有有效金鑰長度不一致的欄位。

parameters 不代表有效的 DSA 金鑰參數集。

另請參閱

適用於

DSAOpenSsl(SafeEvpPKeyHandle)

來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs

從表示為 EVP_PKEY* 的現有 OpenSSL 索引鍵, DSAOpenSsl 初始化 類別的新實例。

public:
 DSAOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
public DSAOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

參數

pkeyHandle
SafeEvpPKeyHandle

要當做索引鍵使用的 OpenSSL EVP_PKEY* 值,以 表示為 SafeEvpPKeyHandle

屬性

例外狀況

pkeyHandle 代表無效的控制代碼。

pkeyHandlenull

pkeyHandle 不代表 DSA 金鑰。

備註

重要

OpenSSL 支援在同一個進程中載入多個程式庫版本。 呼叫此建構函式之前,請確認指標值來自這個類別所使用的相同 OpenSSL 版本。 如需詳細資訊,請參閱OpenSslVersion

另請參閱

適用於