ECDsaOpenSsl 建構函式

定義

多載

ECDsaOpenSsl()

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

ECDsaOpenSsl(Int32)

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

ECDsaOpenSsl(IntPtr)

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

ECDsaOpenSsl(ECCurve)

初始化 ECDsaOpenSsl 類別的新執行個體,並依據所指定曲線產生新金鑰。

ECDsaOpenSsl(SafeEvpPKeyHandle)

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

ECDsaOpenSsl()

來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs

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

public:
 ECDsaOpenSsl();
public ECDsaOpenSsl ();
[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 ECDsaOpenSsl ();
Public Sub New ()
屬性

備註

此建構函式不會立即產生新的公開/私密金鑰。 此建構函式會將 KeySize 屬性設定為 521,而且當需要索引鍵時,會使用儲存的大小來識別目標曲線。 如果透過 ImportParameters 方法或其他索引鍵匯入方法載入金鑰,則來自這個建構函式的金鑰大小沒有任何意義。

另請參閱

適用於

ECDsaOpenSsl(Int32)

來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs

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

public:
 ECDsaOpenSsl(int keySize);
public ECDsaOpenSsl (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 ECDsaOpenSsl (int keySize);
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (keySize As Integer)

參數

keySize
Int32

金鑰的大小。 有效的金鑰大小為 256、384 和 521 位元。

屬性

例外狀況

keySize 指定了無效的長度。

備註

此建構函式不會立即產生新的公開/私密金鑰。 這個建構函式會將 KeySize 屬性設定為所提供的值,而且當需要索引鍵時,會使用儲存的大小來識別目標曲線。 如果透過 ImportParameters 方法或其他索引鍵匯入方法載入金鑰,則來自這個建構函式的金鑰大小沒有任何意義。

另請參閱

適用於

ECDsaOpenSsl(IntPtr)

來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs

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

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

參數

handle
IntPtr

nativeint

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

屬性

例外狀況

handleZero

handle 不是有效的 EC_KEY*

備註

重要

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

另請參閱

適用於

ECDsaOpenSsl(ECCurve)

來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs

初始化 ECDsaOpenSsl 類別的新執行個體,並依據所指定曲線產生新金鑰。

public:
 ECDsaOpenSsl(System::Security::Cryptography::ECCurve curve);
public ECDsaOpenSsl (System.Security.Cryptography.ECCurve curve);
[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 ECDsaOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (curve As ECCurve)

參數

curve
ECCurve

用來產生暫時性公開/私密金鑰組的曲線。

屬性

例外狀況

curve 不會驗證。

curvenull

另請參閱

適用於

ECDsaOpenSsl(SafeEvpPKeyHandle)

來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs
來源:
ECDsaOpenSsl.cs

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

public:
 ECDsaOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
public ECDsaOpenSsl (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 ECDsaOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

參數

pkeyHandle
SafeEvpPKeyHandle

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

屬性

例外狀況

pkeyHandle 代表無效的控制代碼。

pkeyHandlenull

pkeyHandle 不代表橢圓曲線 (EC) 金鑰。

備註

重要

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

另請參閱

適用於