ECDsaCng 類別

定義

提供橢圓曲線數位簽章演算法 (ECDSA) 的新一代密碼編譯 (CNG) 實作。Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

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

範例

下列範例示範如何使用 ECDsaCng 類別來簽署訊息,以及如何使用簽章來驗證訊息是否未遭到變更。The following example shows how to use the ECDsaCng class to sign a message and how to use the signature to verify that the message has not been altered.

using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

class Alice
{
    public static void Main(string[] args)
    {
        Bob bob = new Bob();
        using (ECDsaCng dsa = new ECDsaCng())
        {
            dsa.HashAlgorithm = CngAlgorithm.Sha256;
             bob.key = dsa.Key.Export(CngKeyBlobFormat.EccPublicBlob);

             byte[] data = new byte[] { 21, 5, 8, 12, 207 };

             byte[] signature = dsa.SignData(data);

             bob.Receive(data, signature);
            }
    }
}
public class Bob
{
    public byte[] key;

    public void Receive(byte[] data, byte[] signature)
    {
        using (ECDsaCng ecsdKey = new ECDsaCng(CngKey.Import(key, CngKeyBlobFormat.EccPublicBlob)))
        {
            if (ecsdKey.VerifyData(data, signature))
                Console.WriteLine("Data is good");
            else
                Console.WriteLine("Data is bad");
        }
    }
}
Imports System.IO
Imports System.Security.Cryptography
Imports System.Text

Class Alice

    Public Shared Sub Main(ByVal args() As String)
        Dim bob As New Bob()
        If (True) Then
            Using dsa As New ECDsaCng()
                    dsa.HashAlgorithm = CngAlgorithm.Sha256
                    bob.key = dsa.Key.Export(CngKeyBlobFormat.EccPublicBlob)
                    Dim data() As Byte = {21, 5, 8, 12, 207}
                    Dim signature As Byte() = dsa.SignData(data)
                    bob.Receive(data, signature)
            End Using
        End If

    End Sub
End Class


Public Class Bob
    Public key() As Byte

    Public Sub Receive(ByVal data() As Byte, ByVal signature() As Byte)
        Using ecsdKey As New ECDsaCng(CngKey.Import(key, CngKeyBlobFormat.EccPublicBlob))
                If ecsdKey.VerifyData(data, signature) Then
                    Console.WriteLine("Data is good")
                Else
                    Console.WriteLine("Data is bad")
                End If
        End Using

    End Sub
End Class

備註

只有在使用 Windows CNG 程式庫執行平臺 interop 時,才能直接使用這個類別。This class should only be used directly when doing platform interop with the Windows CNG library. 不需要平臺 interop 時,您應該使用 ECDsa.Create factory 方法,而不是特定的衍生實值。When platform interop is not needed, you should use the ECDsa.Create factory methods instead of a specific derived implementation.

建構函式

ECDsaCng()

使用隨機金鑰組,初始化 ECDsaCng 類別的新執行個體。Initializes a new instance of the ECDsaCng class with a random key pair.

ECDsaCng(CngKey)

使用指定的 CngKey 物件,初始化 ECDsaCng 類別的新執行個體。Initializes a new instance of the ECDsaCng class by using the specified CngKey object.

ECDsaCng(ECCurve)

初始化 ECDsaCng 類別的新執行個體,其公開/私密金鑰組是在指定的曲線上所產生。Initializes a new instance of the ECDsaCng class whose public/private key pair is generated over the specified curve.

ECDsaCng(Int32)

使用指定的目標金鑰大小,初始化 ECDsaCng 類別的新執行個體。Initializes a new instance of the ECDsaCng class with a specified target key size.

欄位

KeySizeValue

表示非對稱演算法使用的金鑰模數大小,以位元為單位。Represents the size, in bits, of the key modulus used by the asymmetric algorithm.

(繼承來源 AsymmetricAlgorithm)
LegalKeySizesValue

指定非對稱演算法所支援的金鑰大小。Specifies the key sizes that are supported by the asymmetric algorithm.

(繼承來源 AsymmetricAlgorithm)

屬性

HashAlgorithm

取得或設定簽署和驗證資料時使用的雜湊演算法。Gets or sets the hash algorithm to use when signing and verifying data.

Key

取得或設定要在簽署和驗證資料時使用的索引鍵。Gets or sets the key to use when signing and verifying data.

KeyExchangeAlgorithm

取得金鑰交換演算法的名稱。Gets the name of the key exchange algorithm.

(繼承來源 ECDsa)
KeySize

取得或設定非對稱演算法使用的金鑰模數大小,以位元為單位。Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.

KeySize

取得或設定非對稱演算法使用的金鑰模數大小,以位元為單位。Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.

(繼承來源 AsymmetricAlgorithm)
LegalKeySizes

取得 KeySize 屬性 setter 支援的金鑰大小 (以位元為單位)。Gets the key sizes, in bits, that are supported by the KeySize property setter.

LegalKeySizes

取得非對稱演算法所支援的金鑰大小。Gets the key sizes that are supported by the asymmetric algorithm.

(繼承來源 AsymmetricAlgorithm)
SignatureAlgorithm

取得簽章演算法的名稱。Gets the name of the signature algorithm.

(繼承來源 ECDsa)

方法

Clear()

釋放 AsymmetricAlgorithm 類別所使用的所有資源。Releases all resources used by the AsymmetricAlgorithm class.

(繼承來源 AsymmetricAlgorithm)
Dispose()

釋放 AsymmetricAlgorithm 類別目前的執行個體所使用的全部資源。Releases all resources used by the current instance of the AsymmetricAlgorithm class.

(繼承來源 AsymmetricAlgorithm)
Dispose(Boolean)

釋放 AsymmetricAlgorithm 類別所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources.

(繼承來源 AsymmetricAlgorithm)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
ExportECPrivateKey()

以 ECPrivateKey 格式匯出目前金鑰。Exports the current key in the ECPrivateKey format.

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

使用位元組型密碼以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰。Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password.

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

使用 Char 型密碼以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰。Exports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password.

(繼承來源 AsymmetricAlgorithm)
ExportExplicitParameters(Boolean)

將橢圓曲線密碼編譯 (ECC) 物件所使用的金鑰和明確的曲線參數匯出至 ECParameters 物件。Exports the key and explicit curve parameters used by the Elliptic curve cryptography (ECC) object into an ECParameters object.

ExportExplicitParameters(Boolean)

在衍生類別中覆寫時,匯出橢圓曲線的明確參數。When overridden in a derived class, exports the explicit parameters for an elliptic curve.

(繼承來源 ECDsa)
ExportParameters(Boolean)

將橢圓曲線密碼編譯 (ECC) 物件所使用的金鑰匯出至 ECParameters 物件。Exports the key used by the Elliptic curve cryptography (ECC) object into an ECParameters object. 如果是以具名曲線形式來建立金鑰,Curve 欄位即會包含具名曲線參數,否則會包含明確的參數。If the key was created as a named curve, the Curve field contains named curve parameters; otherwise, it contains explicit parameters.

ExportParameters(Boolean)

在衍生類別中覆寫時,會匯出橢圓曲線的具名或明確參數。When overridden in a derived class, exports the named or explicit parameters for an elliptic curve. 如果曲線具有名稱,Curve 欄位即會包含具名曲線參數,否則會包含明確的參數。If the curve has a name, the Curve field contains named curve parameters, otherwise it contains explicit parameters.

(繼承來源 ECDsa)
ExportPkcs8PrivateKey()

以 PKCS#8 PrivateKeyInfo 格式匯出目前金鑰。Exports the current key in the PKCS#8 PrivateKeyInfo format.

(繼承來源 AsymmetricAlgorithm)
ExportSubjectPublicKeyInfo()

以 X.509 SubjectPublicKeyInfo 格式匯出目前金鑰的公開金鑰部分。Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format.

(繼承來源 AsymmetricAlgorithm)
FromXmlString(String)

這個方法尚未實作。This method is not implemented.

FromXmlString(String)

這個方法在所有情況下都會擲回。This method throws in all cases.

(繼承來源 ECDsa)
FromXmlString(String, ECKeyXmlFormat)

使用指定的格式從 XML 字串還原金鑰資訊的序列化。Deserializes the key information from an XML string by using the specified format.

GenerateKey(ECCurve)

針對使用曲線產生新的暫時性公開/私密金鑰組,並取代目前金鑰。Generates a new ephemeral public/private key pair for the specified curve, replacing the current key.

GenerateKey(ECCurve)

在衍生類別中覆寫時,會針對所指定曲線產生新的暫時性公開/私密金鑰組,並取代目前的金鑰。When overridden in a derived class, generates a new ephemeral public/private key pair for the specified curve, replacing the current key.

(繼承來源 ECDsa)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetMaxSignatureSize(DSASignatureFormat)

取得此索引鍵以指定格式所產生簽章的最大大小 (以位元組為單位)。Gets the largest size, in bytes, for a signature produced by this key in the indicated format.

(繼承來源 ECDsa)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

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

在衍生類別中覆寫時,會使用指定的雜湊演算法,來為位元組陣列中的指定部分計算出雜湊值。When overridden in a derived class, computes the hash value of the specified portion of a byte array by using the specified hashing algorithm.

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

在衍生類別中覆寫時,會使用指定的雜湊演算法,來為指定的二進位資料流計算出雜湊值。When overridden in a derived class, computes the hash value of the specified binary stream by using the specified hashing algorithm.

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

從 ECPrivateKey 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。Imports the public/private keypair from an ECPrivateKey structure, replacing the keys for this object.

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

使用位元組型密碼解密之後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a byte-based password, replacing the keys for this object.

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

使用 Char 型密碼解密之後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a char-based password, replacing the keys for this object.

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

匯入 RFC 7468 PEM 編碼的加密私密金鑰,並取代這個物件的金鑰。Imports an encrypted RFC 7468 PEM-encoded private key, replacing the keys for this object.

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

匯入 RFC 7468 PEM 編碼的加密私密金鑰,並取代這個物件的金鑰。Imports an encrypted RFC 7468 PEM-encoded private key, replacing the keys for this object.

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

匯入 RFC 7468 PEM 編碼的金鑰,並取代這個物件的金鑰。Imports an RFC 7468 PEM-encoded key, replacing the keys for this object.

(繼承來源 ECDsa)
ImportParameters(ECParameters)

為參數結構建立新的 CngKey,來取代目前執行個體正在使用的現有金鑰。Replaces the existing key that the current instance is working with by creating a new CngKey for the parameters structure.

ImportParameters(ECParameters)

在衍生類別中覆寫時,匯入指定的參數。When overridden in a derived class, imports the specified parameters.

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

解密後,從 PKCS#8 PrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。Imports the public/private keypair from a PKCS#8 PrivateKeyInfo structure after decryption, replacing the keys for this object.

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

解密後,從 X.509 SubjectPublicKeyInfo 結構匯入公開金鑰,以取代這個物件的金鑰。Imports the public key from an X.509 SubjectPublicKeyInfo structure after decryption, replacing the keys for this object.

(繼承來源 ECDsa)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

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

產生指定資料的簽章。Generates a signature for the specified data.

SignData(Byte[], HashAlgorithmName)

使用指定的雜湊演算法,並簽署產生的雜湊值,來為指定的位元組陣列計算出雜湊值。Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value.

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

計算指定資料的雜湊值,並使用指定的簽章格式進行簽署。Computes the hash value of the specified data and signs it using the specified signature format.

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

產生所指定資料長度的數位簽章,以指定的位移開頭。Generates a digital signature for the specified length of data, beginning at the specified offset.

SignData(Byte[], Int32, Int32, HashAlgorithmName)

使用指定的雜湊演算法,並簽署產生的雜湊值,來為指定的部分位元組陣列計算出雜湊值。Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value.

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

計算指定資料的雜湊值,並使用指定的簽章格式進行簽署。Computes the hash value of the specified data and signs it using the specified signature format.

(繼承來源 ECDsa)
SignData(Stream)

為指定的資料流產生簽章,並且讀取至資料流尾端。Generates a signature for the specified data stream, reading to the end of the stream.

SignData(Stream, HashAlgorithmName)

使用指定的雜湊演算法,並簽署產生的雜湊值,來為指定的資料流計算出雜湊值。Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value.

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

計算指定資料的雜湊值,並使用指定的簽章格式進行簽署。Computes the hash value of the specified data and signs it using the specified signature format.

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

計算指定資料的雜湊值,並使用指定的簽章格式進行簽署。Computes the hash value of the specified data and signs it using the specified signature format.

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

計算指定資料的雜湊值,並使用指定的簽章格式進行簽署。Computes the hash value of the specified data and signs it using the specified signature format.

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

產生指定雜湊值的簽章。Generates a signature for the specified hash value.

SignHash(Byte[], DSASignatureFormat)

以指定的格式計算指定雜湊值的 ECDSA 簽章。Computes the ECDSA signature for the specified hash value in the indicated format.

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

以指定的格式計算指定雜湊值的 ECDSA 簽章。Computes the ECDSA signature for the specified hash value in the indicated format.

(繼承來源 ECDsa)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
ToXmlString(Boolean)

這個方法尚未實作。This method is not implemented.

ToXmlString(Boolean)

這個方法在所有情況下都會擲回。This method throws in all cases.

(繼承來源 ECDsa)
ToXmlString(ECKeyXmlFormat)

使用指定的格式將金鑰資訊序列化成 XML 字串。Serializes the key information to an XML string by using the specified format.

TryExportECPrivateKey(Span<Byte>, Int32)

嘗試以 ECPrivateKey 格式將目前的金鑰匯出至提供的緩衝區。Attempts to export the current key in the ECPrivateKey format into a provided buffer.

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

使用位元組型密碼,嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a byte-based password.

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

使用 Char 型密碼,嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password.

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

嘗試以 PKCS#8 PrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。Attempts to export the current key in the PKCS#8 PrivateKeyInfo format into a provided buffer.

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

嘗試以 X.509 SubjectPublicKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。Attempts to export the current key in the X.509 SubjectPublicKeyInfo format into a provided buffer.

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

使用指定的雜湊演算法,嘗試將所指定唯讀位元組範圍的雜湊值計算到提供的目的地。Attempts to compute the hash value of the specified read-only span of bytes into the provided destination by using the specified hashing algorithm.

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

嘗試以指定的格式,建立指定資料的 ECDSA 簽章,放至提供的緩衝區。Attempts to create the ECDSA signature for the specified data in the indicated format into the provided buffer.

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

使用指定的雜湊演算法與目前金鑰,嘗試將所指定唯讀位元組範圍的 ECDSA 數位簽章計算到提供的目的地。Attempts to compute the ECDSA digital signature for the specified read-only span of bytes into the provided destination by using the specified hashing algorithm and the current key.

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

嘗試以指定的格式,建立指定資料的 ECDSA 簽章,放至提供的緩衝區。Attempts to create the ECDSA signature for the specified data in the indicated format into the provided buffer.

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

嘗試以指定的格式,建立指定雜湊值的 ECDSA 簽章,放至提供的緩衝區。Attempts to create the ECDSA signature for the specified hash value in the indicated format into the provided buffer.

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

使用目前金鑰,嘗試將所指定唯讀位元組範圍 (代表資料雜湊) 的 ECDSA 數位簽章計算到提供的目的地。Attempts to compute the ECDSA digital signature for the specified read-only span of bytes representing a data hash into the provided destination by using the current key.

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

嘗試以指定的格式,建立指定雜湊值的 ECDSA 簽章,放至提供的緩衝區。Attempts to create the ECDSA signature for the specified hash value in the indicated format into the provided buffer.

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

驗證所指定資料的數位簽章。Verifies the digital signature of the specified data.

VerifyData(Byte[], Byte[], HashAlgorithmName)

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料。Verifies that a digital signature is appropriate for the current key and provided data with a specified hash algorithm.

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

驗證數位簽章對提供的資料是否有效。Verifies that a digital signature is valid for the provided data.

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

驗證所指定資料長度的簽章,以指定的位移開頭。Verifies a signature for the specified length of data, beginning at the specified offset.

VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName)

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料部分。Verifies that a digital signature is appropriate for the current key and provided portion of data with a specified hash algorithm.

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

驗證數位簽章對提供的資料是否有效。Verifies that a digital signature is valid for the provided data.

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

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料。Verifies that a digital signature is appropriate for the current key and provided data with a specified hash algorithm.

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

驗證數位簽章對提供的資料是否有效。Verifies that a digital signature is valid for the provided data.

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

驗證所指定資料流的數位簽章,並且讀取至資料流尾端。Verifies the digital signature of the specified data stream, reading to the end of the stream.

VerifyData(Stream, Byte[], HashAlgorithmName)

確認數位簽章適用於目前金鑰和使用所指定雜湊演算法提供的資料。Verifies that a digital signature is appropriate for the current key and provided data with a specified hash algorithm.

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

驗證數位簽章對提供的資料是否有效。Verifies that a digital signature is valid for the provided data.

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

驗證數位簽章對提供的資料是否有效。Verifies that a digital signature is valid for the provided data.

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

驗證數位簽章對提供的資料是否有效。Verifies that a digital signature is valid for the provided data.

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

確認數位簽章適用於目前金鑰和提供的資料雜湊。Verifies that a digital signature is appropriate for the current key and provided data hash.

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

驗證數位簽章對提供的雜湊是否有效。Verifies that a digital signature is valid for the provided hash.

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

確認數位簽章適用於目前金鑰和提供的資料雜湊。Verifies that a digital signature is appropriate for the current key and provided data hash.

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

驗證數位簽章對提供的雜湊是否有效。Verifies that a digital signature is valid for the provided hash.

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

驗證數位簽章對提供的雜湊是否有效。Verifies that a digital signature is valid for the provided hash.

(繼承來源 ECDsa)

明確介面實作

IDisposable.Dispose()

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

如需這個成員的說明,請參閱 Dispose()For a description of this member, see Dispose().

(繼承來源 AsymmetricAlgorithm)

適用於