ECDsaOpenSsl 類別

定義

提供 OpenSSL 所支援的橢圓曲線數位簽章演算法 (ECDSA) 實作。

public ref class ECDsaOpenSsl sealed : System::Security::Cryptography::ECDsa
public sealed class ECDsaOpenSsl : System.Security.Cryptography.ECDsa
type ECDsaOpenSsl = class
    inherit ECDsa
Public NotInheritable Class ECDsaOpenSsl
Inherits ECDsa
繼承
繼承

備註

只有在與系統 OpenSSL 程式庫執行平臺 Interop 時,才應該直接使用此類別。 不需要平臺 Interop 時,您應該使用 ECDsa.Create Factory 方法,而不是特定的衍生實作。

建構函式

ECDsaOpenSsl()

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

ECDsaOpenSsl(ECCurve)

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

ECDsaOpenSsl(Int32)

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

ECDsaOpenSsl(IntPtr)

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

ECDsaOpenSsl(SafeEvpPKeyHandle)

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

欄位

KeySizeValue

表示非對稱演算法使用的金鑰模數大小,以位元為單位。

(繼承來源 AsymmetricAlgorithm)
LegalKeySizesValue

指定非對稱演算法所支援的金鑰大小。

(繼承來源 AsymmetricAlgorithm)

屬性

KeyExchangeAlgorithm

取得金鑰交換演算法的名稱。

(繼承來源 ECDsa)
KeySize

取得或設定非對稱演算法使用的金鑰模數大小,以位元為單位。

KeySize

取得或設定非對稱演算法使用的金鑰模數大小,以位元為單位。

(繼承來源 AsymmetricAlgorithm)
LegalKeySizes

取得 KeySize 屬性 setter 支援的金鑰大小 (以位元為單位)。

LegalKeySizes

取得非對稱演算法所支援的金鑰大小。

(繼承來源 AsymmetricAlgorithm)
SignatureAlgorithm

取得簽章演算法的名稱。

(繼承來源 ECDsa)

方法

Clear()

釋放 AsymmetricAlgorithm 類別所使用的所有資源。

(繼承來源 AsymmetricAlgorithm)
Dispose()

釋放 AsymmetricAlgorithm 類別目前的執行個體所使用的全部資源。

(繼承來源 AsymmetricAlgorithm)
Dispose(Boolean)

釋放 AsymmetricAlgorithm 類別所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

(繼承來源 AsymmetricAlgorithm)
DuplicateKeyHandle()

取得密碼編譯金鑰的 SafeEvpPKeyHandle 表示法。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
ExportECPrivateKey()

以 ECPrivateKey 格式匯出目前的金鑰。

(繼承來源 ECDsa)
ExportECPrivateKeyPem()

以 ECPrivateKey 格式匯出目前的金鑰,並編碼 PEM。

(繼承來源 ECAlgorithm)
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

使用位元組型密碼以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰。

(繼承來源 AsymmetricAlgorithm)
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

使用 Char 型密碼以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰。

(繼承來源 AsymmetricAlgorithm)
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)

使用以位元組為基礎的密碼 PEM 編碼,以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前的金鑰。

(繼承來源 AsymmetricAlgorithm)
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)

使用以字元為基礎的密碼 PEM 編碼,以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前的金鑰。

(繼承來源 AsymmetricAlgorithm)
ExportExplicitParameters(Boolean)

將橢圓曲線密碼編譯 (ECC) 物件所使用的金鑰和明確的曲線參數匯出至 ECParameters 物件。

ExportExplicitParameters(Boolean)

在衍生類別中覆寫時,匯出橢圓曲線的明確參數。

(繼承來源 ECDsa)
ExportParameters(Boolean)

將橢圓曲線密碼編譯 (ECC) 物件所使用的金鑰匯出至 ECParameters 物件。 如果是以具名曲線形式來建立金鑰,Curve 欄位即會包含具名曲線參數,否則會包含明確的參數。

ExportParameters(Boolean)

在衍生類別中覆寫時,會匯出橢圓曲線的具名或明確參數。 如果曲線具有名稱,Curve 欄位即會包含具名曲線參數,否則會包含明確的參數。

(繼承來源 ECDsa)
ExportPkcs8PrivateKey()

以 PKCS#8 PrivateKeyInfo 格式匯出目前金鑰。

(繼承來源 AsymmetricAlgorithm)
ExportPkcs8PrivateKeyPem()

以 PKCS#8 PrivateKeyInfo 格式匯出目前的金鑰,並編碼 PEM。

(繼承來源 AsymmetricAlgorithm)
ExportSubjectPublicKeyInfo()

以 X.509 SubjectPublicKeyInfo 格式匯出目前金鑰的公開金鑰部分。

(繼承來源 AsymmetricAlgorithm)
ExportSubjectPublicKeyInfoPem()

以 X.509 SubjectPublicKeyInfo 格式匯出目前金鑰的公開金鑰部分,並編碼 PEM。

(繼承來源 AsymmetricAlgorithm)
FromXmlString(String)

這個方法在所有情況下都會擲回。

(繼承來源 ECDsa)
GenerateKey(ECCurve)

針對使用曲線產生新的暫時性公開/私密金鑰組,並取代目前金鑰。

GenerateKey(ECCurve)

在衍生類別中覆寫時,會針對所指定曲線產生新的暫時性公開/私密金鑰組,並取代目前的金鑰。

(繼承來源 ECDsa)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetMaxSignatureSize(DSASignatureFormat)

取得此索引鍵以指定格式所產生簽章的最大大小 (以位元組為單位)。

(繼承來源 ECDsa)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
HashData(Byte[], Int32, Int32, HashAlgorithmName)

在衍生類別中覆寫時,會使用指定的雜湊演算法,來為位元組陣列中的指定部分計算出雜湊值。

(繼承來源 ECDsa)
HashData(Stream, HashAlgorithmName)

在衍生類別中覆寫時,會使用指定的雜湊演算法,來為指定的二進位資料流計算出雜湊值。

(繼承來源 ECDsa)
ImportECPrivateKey(ReadOnlySpan<Byte>, Int32)

從 ECPrivateKey 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。

(繼承來源 ECDsa)
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

使用位元組型密碼解密之後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。

(繼承來源 ECDsa)
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Int32)

使用 Char 型密碼解密之後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。

(繼承來源 ECDsa)
ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

匯入 RFC 7468 PEM 編碼的加密私密金鑰,並取代這個物件的金鑰。

(繼承來源 ECDsa)
ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

匯入 RFC 7468 PEM 編碼的加密私密金鑰,並取代這個物件的金鑰。

(繼承來源 ECDsa)
ImportFromPem(ReadOnlySpan<Char>)

匯入 RFC 7468 PEM 編碼的金鑰,並取代這個物件的金鑰。

(繼承來源 ECDsa)
ImportParameters(ECParameters)

將這個執行個體的目前金鑰取代為使用指定金鑰參數的金鑰。

ImportParameters(ECParameters)

在衍生類別中覆寫時,匯入指定的參數。

(繼承來源 ECDsa)
ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32)

解密後,從 PKCS#8 PrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。

(繼承來源 ECDsa)
ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>, Int32)

解密後,從 X.509 SubjectPublicKeyInfo 結構匯入公開金鑰,以取代這個物件的金鑰。

(繼承來源 ECDsa)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
SignData(Byte[], HashAlgorithmName)

使用指定的雜湊演算法,並簽署產生的雜湊值,來為指定的位元組陣列計算出雜湊值。

(繼承來源 ECDsa)
SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

計算指定資料的雜湊值,並使用指定的簽章格式加以簽署。

(繼承來源 ECDsa)
SignData(Byte[], Int32, Int32, HashAlgorithmName)

使用指定的雜湊演算法,並簽署產生的雜湊值,來為指定的部分位元組陣列計算出雜湊值。

(繼承來源 ECDsa)
SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)

計算指定資料的雜湊值,並使用指定的簽章格式加以簽署。

(繼承來源 ECDsa)
SignData(ReadOnlySpan<Byte>, HashAlgorithmName)

計算指定資料的雜湊值並進行簽署。

(繼承來源 ECDsa)
SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

計算指定資料的雜湊值,並使用指定的簽章格式加以簽署。

(繼承來源 ECDsa)
SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName)

計算指定資料的雜湊值,並以指定的格式將它簽署至提供的緩衝區。

(繼承來源 ECDsa)
SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat)

計算指定資料的雜湊值,並以指定的格式將它簽署至提供的緩衝區。

(繼承來源 ECDsa)
SignData(Stream, HashAlgorithmName)

使用指定的雜湊演算法,並簽署產生的雜湊值,來為指定的資料流計算出雜湊值。

(繼承來源 ECDsa)
SignData(Stream, HashAlgorithmName, DSASignatureFormat)

計算指定資料的雜湊值,並使用指定的簽章格式加以簽署。

(繼承來源 ECDsa)
SignDataCore(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

計算指定資料的雜湊值,並使用指定的簽章格式加以簽署。

(繼承來源 ECDsa)
SignDataCore(Stream, HashAlgorithmName, DSASignatureFormat)

計算指定資料的雜湊值,並使用指定的簽章格式加以簽署。

(繼承來源 ECDsa)
SignHash(Byte[])

產生指定雜湊值的數位簽章。

SignHash(Byte[], DSASignatureFormat)

以指定的格式計算指定雜湊值的 ECDSA 簽章。

(繼承來源 ECDsa)
SignHash(ReadOnlySpan<Byte>)

計算指定雜湊值的 ECDSA 簽章。

(繼承來源 ECDsa)
SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

以指定的格式計算指定雜湊值的 ECDSA 簽章。

(繼承來源 ECDsa)
SignHash(ReadOnlySpan<Byte>, Span<Byte>)

將指定雜湊值的 ECDSA 簽章計算到提供的緩衝區中。

(繼承來源 ECDsa)
SignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat)

將指定之雜湊值的 ECDSA 簽章,以指定的格式計算為提供的緩衝區。

(繼承來源 ECDsa)
SignHashCore(ReadOnlySpan<Byte>, DSASignatureFormat)

以指定的格式計算指定雜湊值的 ECDSA 簽章。

(繼承來源 ECDsa)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
ToXmlString(Boolean)

這個方法在所有情況下都會擲回。

(繼承來源 ECDsa)
TryExportECPrivateKey(Span<Byte>, Int32)

嘗試以 ECPrivateKey 格式將目前的金鑰匯出至提供的緩衝區。

(繼承來源 ECDsa)
TryExportECPrivateKeyPem(Span<Char>, Int32)

嘗試將 PEM 編碼 ECPrivateKey 格式的目前金鑰匯出至提供的緩衝區。

(繼承來源 ECAlgorithm)
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

使用位元組型密碼,嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。

(繼承來源 ECDsa)
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

使用 Char 型密碼,嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。

(繼承來源 ECDsa)
TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters, Span<Char>, Int32)

嘗試使用以位元組為基礎的密碼 PEM 編碼,以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前的金鑰。

(繼承來源 AsymmetricAlgorithm)
TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters, Span<Char>, Int32)

使用以字元為基礎的密碼 PEM 編碼,以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前的金鑰。

(繼承來源 AsymmetricAlgorithm)
TryExportPkcs8PrivateKey(Span<Byte>, Int32)

嘗試以 PKCS#8 PrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。

(繼承來源 ECDsa)
TryExportPkcs8PrivateKeyPem(Span<Char>, Int32)

嘗試將 PEM 編碼 PKCS#8 PrivateKeyInfo 格式中的目前金鑰匯出為提供的緩衝區。

(繼承來源 AsymmetricAlgorithm)
TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)

嘗試以 X.509 SubjectPublicKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。

(繼承來源 ECDsa)
TryExportSubjectPublicKeyInfoPem(Span<Char>, Int32)

嘗試將 PEM 編碼 X.509 SubjectPublicKeyInfo 格式中的目前金鑰匯出為提供的緩衝區。

(繼承來源 AsymmetricAlgorithm)
TryHashData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

使用指定的雜湊演算法,嘗試將所指定唯讀位元組範圍的雜湊值計算到提供的目的地。

(繼承來源 ECDsa)
TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

嘗試以指定的格式,建立指定資料的 ECDSA 簽章,放至提供的緩衝區。

(繼承來源 ECDsa)
TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

使用指定的雜湊演算法與目前金鑰,嘗試將所指定唯讀位元組範圍的 ECDSA 數位簽章計算到提供的目的地。

(繼承來源 ECDsa)
TrySignDataCore(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

嘗試以指定的格式,建立指定資料的 ECDSA 簽章,放至提供的緩衝區。

(繼承來源 ECDsa)
TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)

嘗試以指定的格式,建立指定雜湊值的 ECDSA 簽章,放至提供的緩衝區。

(繼承來源 ECDsa)
TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, Int32)

使用目前金鑰,嘗試將所指定唯讀位元組範圍 (代表資料雜湊) 的 ECDSA 數位簽章計算到提供的目的地。

(繼承來源 ECDsa)
TrySignHashCore(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)

嘗試以指定的格式,建立指定雜湊值的 ECDSA 簽章,放至提供的緩衝區。

(繼承來源 ECDsa)
VerifyData(Byte[], Byte[], HashAlgorithmName)

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料。

(繼承來源 ECDsa)
VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

(繼承來源 ECDsa)
VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName)

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料部分。

(繼承來源 ECDsa)
VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

(繼承來源 ECDsa)
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料。

(繼承來源 ECDsa)
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

(繼承來源 ECDsa)
VerifyData(Stream, Byte[], HashAlgorithmName)

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料。

(繼承來源 ECDsa)
VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

(繼承來源 ECDsa)
VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

(繼承來源 ECDsa)
VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

(繼承來源 ECDsa)
VerifyHash(Byte[], Byte[])

確認數位簽章適用於目前金鑰和提供的資料雜湊。

VerifyHash(Byte[], Byte[], DSASignatureFormat)

驗證數位簽章對提供的雜湊是否有效。

(繼承來源 ECDsa)
VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

確認數位簽章適用於目前金鑰和提供的資料雜湊。

(繼承來源 ECDsa)
VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

驗證數位簽章對提供的雜湊是否有效。

(繼承來源 ECDsa)
VerifyHashCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

驗證數位簽章對提供的雜湊是否有效。

(繼承來源 ECDsa)

適用於