ECDsaOpenSsl 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ECDsaOpenSsl() |
初始化 ECDsaOpenSsl 類別的新執行個體。 |
ECDsaOpenSsl(Int32) |
使用指定的目標金鑰大小,初始化 ECDsaOpenSsl 類別的新執行個體。 |
ECDsaOpenSsl(IntPtr) |
從表示為 |
ECDsaOpenSsl(ECCurve) |
初始化 ECDsaOpenSsl 類別的新執行個體,並依據所指定曲線產生新金鑰。 |
ECDsaOpenSsl(SafeEvpPKeyHandle) |
從表示為 |
ECDsaOpenSsl()
初始化 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 類別的新執行個體。
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)
從表示為 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*
值。
- 屬性
例外狀況
handle
為 Zero。
handle
不是有效的 EC_KEY*
。
備註
重要
OpenSSL 支援在同一個進程中載入多個連結庫版本。 呼叫此建構函式之前,請確認指標值來自這個類別所使用的相同 OpenSSL 版本,如需詳細資訊,請參閱 OpenSslVersion 。
另請參閱
適用於
ECDsaOpenSsl(ECCurve)
初始化 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
不會驗證。
curve
為 null
。
另請參閱
適用於
ECDsaOpenSsl(SafeEvpPKeyHandle)
從表示為 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
代表無效的控制代碼。
pkeyHandle
為 null
。
pkeyHandle
不代表橢圓曲線 (EC) 金鑰。
備註
重要
OpenSSL 支援在同一個進程中載入多個連結庫版本。 呼叫此建構函式之前,請確認指標值來自這個類別所使用的相同 OpenSSL 版本。 如需詳細資訊,請參閱OpenSslVersion。
另請參閱
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應