ECDsaOpenSsl 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ECDsaOpenSsl 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ECDsaOpenSsl() |
初始化 ECDsaOpenSsl 類別的新執行個體。 |
| ECDsaOpenSsl(Int32) |
初始化一個以指定目標金鑰大小的新類別實例 ECDsaOpenSsl 。 |
| ECDsaOpenSsl(IntPtr) |
從現有的 OpenSSL 金鑰(以 ECDsaOpenSsl. 表示)初始化該 |
| ECDsaOpenSsl(ECCurve) |
初始化該類別的新實例 ECDsaOpenSsl ,並在指定曲線上產生新的鍵值。 |
| ECDsaOpenSsl(SafeEvpPKeyHandle) |
從現有的 OpenSSL 金鑰(以 ECDsaOpenSsl. 表示)初始化該 |
ECDsaOpenSsl()
初始化 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 ECDsaOpenSsl();
Public Sub New ()
- 屬性
備註
此構造子不會立即產生新的公私鑰對。 此建構器將屬性設 KeySize 為 521,當需要金鑰時,會利用儲存的大小來識別目標曲線。 若金鑰是透過該 ImportParameters 方法或其他金鑰匯入方法載入,該建構子的金鑰大小則無意義。
另請參閱
適用於
ECDsaOpenSsl(Int32)
初始化一個以指定目標金鑰大小的新類別實例 ECDsaOpenSsl 。
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (keySize As Integer)
參數
- keySize
- Int32
- 屬性
例外狀況
keySize 指定一個無效的長度。
備註
此構造子不會立即產生新的公私鑰對。 此建構子將屬性設定 KeySize 為所給值,當需要鍵時,會利用儲存的大小來識別目標曲線。 若金鑰是透過該 ImportParameters 方法或其他金鑰匯入方法載入,該建構子的金鑰大小則無意義。
另請參閱
適用於
ECDsaOpenSsl(IntPtr)
從現有的 OpenSSL 金鑰(以 ECDsaOpenSsl. 表示)初始化該EC_KEY*類別的新實例。
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (handle As IntPtr)
參數
- handle
-
IntPtr
nativeint
- 屬性
例外狀況
handle 是 Zero。
handle 不是有效的 EC_KEY*。
備註
Important
OpenSSL 支援在同一程序中載入多個函式庫版本。 在呼叫這個建構子之前,請確認你的指標值是否來自與此類別相同的 OpenSSL 版本。 如需詳細資訊,請參閱OpenSslVersion。
另請參閱
適用於
ECDsaOpenSsl(ECCurve)
初始化該類別的新實例 ECDsaOpenSsl ,並在指定曲線上產生新的鍵值。
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
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)
從現有的 OpenSSL 金鑰(以 ECDsaOpenSsl. 表示)初始化該EVP_PKEY*類別的新實例。
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);
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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)
參數
- pkeyHandle
- SafeEvpPKeyHandle
- 屬性
例外狀況
pkeyHandle 代表無效的句柄。
pkeyHandle 是 null。
pkeyHandle 不代表橢圓曲線(EC)鍵。
備註
在 .NET 9 及以後版本中,pkeyHandle 的外部修改也會影響該建構器所建立實例中儲存的 handle。
Important
OpenSSL 支援在同一程序中載入多個函式庫版本。 在呼叫這個建構子之前,請確認你的指標值是否來自與此類別相同的 OpenSSL 版本。 如需詳細資訊,請參閱OpenSslVersion。