語言

DSAOpenSsl 建構函式

定義

初始化 DSAOpenSsl 類別的新執行個體。

多載

名稱 Description
DSAOpenSsl()

初始化一個新的類別實例 DSAOpenSsl ,預設金鑰大小為 2048 位元。

DSAOpenSsl(Int32)

初始化一個具有指定金鑰大小的新 DSAOpenSsl 類別實例。

DSAOpenSsl(IntPtr)

從現有的 OpenSSL 金鑰(以 DSAOpenSsl. 表示)初始化該DSA*類別的新實例。

DSAOpenSsl(DSAParameters)

初始化該類別的新實例 DSAOpenSsl ,並從現有鍵匯入參數。

DSAOpenSsl(SafeEvpPKeyHandle)

從現有的 OpenSSL 金鑰(以 DSAOpenSsl. 表示)初始化該EVP_PKEY*類別的新實例。

DSAOpenSsl()

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

初始化一個新的類別實例 DSAOpenSsl ,預設金鑰大小為 2048 位元。

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 DSAOpenSsl();
Public Sub New ()
屬性

備註

此構造子不會立即產生新的 DSA 公私鑰對,僅設定需要時產生金鑰的大小。 如果金鑰是透過該 ImportParameters 方法或其他金鑰匯入方式載入,這個建構子的金鑰大小就沒有意義。

另請參閱

適用於

DSAOpenSsl(Int32)

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

初始化一個具有指定金鑰大小的新 DSAOpenSsl 類別實例。

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);
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")>]
new System.Security.Cryptography.DSAOpenSsl : int -> System.Security.Cryptography.DSAOpenSsl
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
來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs

從現有的 OpenSSL 金鑰(以 DSAOpenSsl. 表示)初始化該DSA*類別的新實例。

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);
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")>]
new System.Security.Cryptography.DSAOpenSsl : nativeint -> System.Security.Cryptography.DSAOpenSsl
new System.Security.Cryptography.DSAOpenSsl : nativeint -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (handle As IntPtr)

參數

handle
IntPtr

nativeint

屬性

例外狀況

handle 是 Zero。

handle 不是有效的 DSA*。

備註

Important

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

另請參閱

適用於

DSAOpenSsl(DSAParameters)

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

初始化該類別的新實例 DSAOpenSsl ,並從現有鍵匯入參數。

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);
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")>]
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSAOpenSsl
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
來源:
DSAOpenSsl.cs
來源:
DSAOpenSsl.cs

從現有的 OpenSSL 金鑰(以 DSAOpenSsl. 表示)初始化該EVP_PKEY*類別的新實例。

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);
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")>]
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.DSAOpenSsl
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

參數

pkeyHandle
SafeEvpPKeyHandle
屬性

例外狀況

pkeyHandle 代表無效的句柄。

pkeyHandle 是 null。

pkeyHandle 不代表 DSA 金鑰。

備註

Important

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

另請參閱

適用於