ECAlgorithm 類別

定義

代表橢圓曲線非對稱演算法可繼承的抽象類別。

public ref class ECAlgorithm abstract : System::Security::Cryptography::AsymmetricAlgorithm
public abstract class ECAlgorithm : System.Security.Cryptography.AsymmetricAlgorithm
type ECAlgorithm = class
    inherit AsymmetricAlgorithm
Public MustInherit Class ECAlgorithm
Inherits AsymmetricAlgorithm
繼承
衍生

建構函式

名稱 Description
ECAlgorithm()

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

欄位

名稱 Description
KeySizeValue

代表非對稱演算法所使用的金鑰模數的大小(以位元為單位)。

(繼承來源 AsymmetricAlgorithm)
LegalKeySizesValue

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

(繼承來源 AsymmetricAlgorithm)

屬性

名稱 Description
KeyExchangeAlgorithm

當在派生類別中覆寫時,會獲得金鑰交換演算法的名稱。 否則,會拋出一個 NotImplementedException

(繼承來源 AsymmetricAlgorithm)
KeySize

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

(繼承來源 AsymmetricAlgorithm)
LegalKeySizes

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

(繼承來源 AsymmetricAlgorithm)
SignatureAlgorithm

當在派生類別中實作時,會獲得簽名演算法的名稱。 否則,總是拋 NotImplementedException出 。

(繼承來源 AsymmetricAlgorithm)

方法

名稱 Description
Clear()

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

(繼承來源 AsymmetricAlgorithm)
Dispose()

釋放目前類別實例 AsymmetricAlgorithm 所使用的所有資源。

(繼承來源 AsymmetricAlgorithm)
Dispose(Boolean)

釋放類別使用的 AsymmetricAlgorithm 非管理資源,並可選擇性地釋放受管理資源。

(繼承來源 AsymmetricAlgorithm)
Equals(Object)

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

(繼承來源 Object)
ExportECPrivateKey()

匯出目前的金鑰,格式為 ECPrivateKey。

ExportECPrivateKeyPem()

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

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

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

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

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

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

匯出目前的金鑰,格式為 PKCS#8 EncryptedPrivateKeyInfo,並以位元組密碼(PEM 編碼)匯出。

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

以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰,並以字元密碼(PEM encoded)匯出。

(繼承來源 AsymmetricAlgorithm)
ExportExplicitParameters(Boolean)

當在衍生類別中覆寫時,會匯出 ECCurve 的明確 ECParameters 內容。

ExportParameters(Boolean)

當在衍生類別中覆寫時,會匯出 ECCurve 的命名或明確 ECParameters 內容。 如果曲線有名稱,Curve 屬性會包含命名的曲線參數,否則會包含明確的參數。

ExportPkcs8PrivateKey()

匯出目前的金鑰,格式為 PKCS#8 PrivateKeyInfo。

(繼承來源 AsymmetricAlgorithm)
ExportPkcs8PrivateKeyPem()

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

(繼承來源 AsymmetricAlgorithm)
ExportSubjectPublicKeyInfo()

匯出目前金鑰中公開金鑰部分,格式為 X.509 SubjectPublicKeyInfo。

(繼承來源 AsymmetricAlgorithm)
ExportSubjectPublicKeyInfoPem()

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

(繼承來源 AsymmetricAlgorithm)
FromXmlString(String)

當在衍生類別中覆寫時,會從 XML 字串重建物件 AsymmetricAlgorithm 。 否則,會拋出 NotImplementedException

(繼承來源 AsymmetricAlgorithm)
GenerateKey(ECCurve)

當在派生類別中被覆寫時,會為指定的曲線產生新的公私鑰對。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

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

從 ECPrivateKey 結構匯入公私鑰對,替換此物件的金鑰。

ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

在以位元組密碼解密後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公私密金鑰對,替換該物件的金鑰。

ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Int32)

在以位元組密碼解密後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公私密金鑰對,替換該物件的金鑰。

ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

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

ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

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

ImportFromPem(ReadOnlySpan<Char>)

匯入一個 RFC 7468 PEM 編碼的金鑰,替換此物件的金鑰。

ImportParameters(ECParameters)

當在導出類別中覆寫時,會匯入指定的 ECParameters

ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32)

解密後,從 PKCS#8 PrivateKeyInfo 結構匯入公私鑰對,替換此物件的金鑰。

ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>, Int32)

解密後,從 X.509 SubjectPublicKeyInfo 結構匯入公鑰,替換該物件的金鑰

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)
ToXmlString(Boolean)

當在衍生類別中覆寫時,會建立並回傳當前 AsymmetricAlgorithm 物件的 XML 字串表示。 否則,會拋出 NotImplementedException

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

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

TryExportECPrivateKeyPem(Span<Char>, Int32)

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

TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

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

TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

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

TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters, Span<Char>, Int32)

嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰,並以位元組密碼(PEM 編碼)匯出。

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

以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰,並以字元密碼(PEM encoded)匯出。

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

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

TryExportPkcs8PrivateKeyPem(Span<Char>, Int32)

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

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

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

TryExportSubjectPublicKeyInfoPem(Span<Char>, Int32)

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

(繼承來源 AsymmetricAlgorithm)

適用於