DSA 類別

定義

表示抽象基底類別,數位簽章演算法 (DSA) 的所有實作都必須從它繼承。Represents the abstract base class from which all implementations of the Digital Signature Algorithm (DSA) must inherit.

public ref class DSA abstract : System::Security::Cryptography::AsymmetricAlgorithm
public abstract class DSA : System.Security.Cryptography.AsymmetricAlgorithm
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class DSA : System.Security.Cryptography.AsymmetricAlgorithm
type DSA = class
    inherit AsymmetricAlgorithm
[<System.Runtime.InteropServices.ComVisible(true)>]
type DSA = class
    inherit AsymmetricAlgorithm
Public MustInherit Class DSA
Inherits AsymmetricAlgorithm
繼承
衍生
屬性

備註

您可以使用 DSA 類別和衍生類別來建立數位簽章,以協助保護資料的完整性。You can use the DSA class and derived classes to create digital signatures that help protect the integrity of your data. DSACryptoServiceProvider提供此類別的實作為。The DSACryptoServiceProvider provides an implementation of this class.

若要使用公開金鑰系統來數位簽署訊息,傳送者會先將雜湊函式套用至訊息,以建立訊息摘要。To use a public-key system to digitally sign a message, the sender first applies a hash function to the message to create a message digest. 然後,寄件者會使用寄件者的私密金鑰來加密訊息摘要,以建立傳送者的個人簽章。The sender then encrypts the message digest with the sender's private key to create the sender's personal signature. 接收訊息和簽章時,接收者會使用傳送者的公開金鑰來解密簽章,以復原訊息摘要,並使用傳送者所使用的相同雜湊演算法來雜湊訊息。Upon receiving the message and signature, the receiver decrypts the signature using the sender's public key to recover the message digest and hashes the message using the same hash algorithm that the sender used. 如果接收者計算的訊息摘要完全符合從傳送者收到的訊息摘要,則接收者可以假設訊息在傳輸期間並未改變。If the message digest that the receiver computes exactly matches the message digest received from the sender, the receiver can assume that the message was not altered while in transit. 請注意,任何人都可以驗證簽章,因為寄件者的公開金鑰是常見的知識。Note that a signature can be verified by anyone, because the sender's public key is common knowledge.

重要

DSA 演算法的建立者已撤銷其對其支援的支援。The creators of the DSA algorithm have withdrawn their support for it. 請考慮使用 RSA 類別或類別, ECDsa 而不是 DSA 類別。Consider using the RSA class or the ECDsa class instead of the DSA class. DSA僅用於與繼承應用程式和資料的相容性。Use DSA only for compatibility with legacy applications and data.

有兩個不同版本的 DSA 演算法。Two different versions of the DSA algorithm exist. 以 FIPS 186-2 所述的原始表單需要使用 SHA-1 做為雜湊演算法,並支援從512位到1024位(以64位遞增)的金鑰長度。The original form, described in FIPS 186-2, requires the use of SHA-1 as the hash algorithm and supports key lengths from 512 bits to 1024 bits in increments of 64 bits. FIPS 186-3 中描述了演算法的更新版本,這項功能可讓您使用 SHA-2 系列的雜湊演算法,並新增2048位金鑰和3072位金鑰的支援。An updated version of the algorithm was described in FIPS 186-3, which enabled the use of the SHA-2 family of hash algorithms and added support for 2048 bit keys and 3072 bit keys. 這種類型的所有衍生型別都不支援 DSA 的 FIPS 186-3 增強功能。Not all derived implementations of this type support the FIPS 186-3 enhancements to DSA. 透過屬性可以偵測到支援 LegalKeySizesSupport can be detected via the LegalKeySizes property.

建構函式

DSA()

初始化 DSA 類別的新執行個體。Initializes a new instance of the DSA class.

欄位

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)

屬性

KeyExchangeAlgorithm

在衍生類別中覆寫時,取得金鑰交換演算法的名稱。When overridden in a derived class, gets the name of the key exchange algorithm. 否則,擲回 NotImplementedExceptionOtherwise, throws an NotImplementedException.

(繼承來源 AsymmetricAlgorithm)
KeySize

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

(繼承來源 AsymmetricAlgorithm)
LegalKeySizes

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

(繼承來源 AsymmetricAlgorithm)
SignatureAlgorithm

在衍生類別中實作時,取得簽章演算法的名稱。When implemented in a derived class, gets the name of the signature algorithm. 否則,一律擲回 NotImplementedExceptionOtherwise, always throws a NotImplementedException.

(繼承來源 AsymmetricAlgorithm)

方法

Clear()

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

(繼承來源 AsymmetricAlgorithm)
Create()

建立用來執行非對稱演算法之預設密碼編譯物件。Creates the default cryptographic object used to perform the asymmetric algorithm.

Create(DSAParameters)

以指定的 DSA 金鑰參數建立新的暫時 DSA 金鑰。Creates a new ephemeral DSA key with the specified DSA key parameters.

Create(Int32)

以指定的金鑰大小建立新的暫時 DSA 金鑰。Creates a new ephemeral DSA key with the specified key size.

Create(String)

建立用來執行非對稱演算法之指定密碼編譯物件。Creates the specified cryptographic object used to perform the asymmetric algorithm.

CreateSignature(Byte[])

在衍生類別中覆寫時,會建立指定雜湊值的 DSA 簽章。When overridden in a derived class, creates the DSA signature for the specified hash value.

CreateSignature(Byte[], DSASignatureFormat)

以指定的格式建立指定雜湊值的 DSA 簽章。Creates the DSA signature for the specified hash value in the indicated format.

CreateSignatureCore(ReadOnlySpan<Byte>, DSASignatureFormat)

以指定的格式建立指定雜湊值的 DSA 簽章。Creates the DSA signature for the specified hash value in the indicated format.

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)
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)
ExportParameters(Boolean)

在衍生類別中覆寫時,會匯出 DSAParametersWhen overridden in a derived class, exports the DSAParameters.

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)

從 XML 字串重新建構 DSA 物件。Reconstructs a DSA object from an XML string.

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.

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 a specified portion of a byte array by using a specified hashing algorithm.

HashData(Stream, HashAlgorithmName)

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

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.

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

當在衍生類別中受到覆寫時,於使用位元組型密碼解密之後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。When overridden in a derived class, imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a byte-based password, replacing the keys for this object.

(繼承來源 AsymmetricAlgorithm)
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.

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

當在衍生類別中受到覆寫時,於使用字元型密碼解密之後,從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。When overridden in a derived class, imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a char-based password, replacing the keys for this object.

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

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

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

在衍生類別中覆寫時,匯入 RFC 7468 PEM 編碼的加密金鑰,並取代這個物件的金鑰。When overridden in a derived class, imports an encrypted RFC 7468 PEM-encoded key, replacing the keys for this object.

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

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

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

在衍生類別中覆寫時,匯入 RFC 7468 PEM 編碼的加密金鑰,並取代這個物件的金鑰。When overridden in a derived class, imports an encrypted RFC 7468 PEM-encoded key, replacing the keys for this object.

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

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

ImportFromPem(ReadOnlySpan<Char>)

在衍生類別中覆寫時,匯入 RFC 7468文字編碼的金鑰,並取代這個物件的金鑰。When overridden in a derived class, imports an RFC 7468 textually encoded key, replacing the keys for this object.

(繼承來源 AsymmetricAlgorithm)
ImportParameters(DSAParameters)

在衍生類別中覆寫時,會匯入指定的 DSAParametersWhen overridden in a derived class, imports the specified DSAParameters.

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.

ImportPkcs8PrivateKey(ReadOnlySpan<Byte>, Int32)

當在衍生類別中受到覆寫時,於解密後從 PKCS#8 PrivateKeyInfo 結構匯入公開/私密金鑰組,以取代這個物件的金鑰。When overriden in a derived class, imports the public/private keypair from a PKCS#8 PrivateKeyInfo structure after decryption, replacing the keys for this object.

(繼承來源 AsymmetricAlgorithm)
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.

ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>, Int32)

當在衍生類別中受到覆寫時,於解密後從 X.509 SubjectPublicKeyInfo 結構匯入公開金鑰,以取代這個物件的金鑰。When overriden in a derived class, imports the public key from an X.509 SubjectPublicKeyInfo structure after decryption, replacing the keys for this object.

(繼承來源 AsymmetricAlgorithm)
MemberwiseClone()

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

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

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

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

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

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.

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

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

SignData(Stream, HashAlgorithmName)

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

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

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

SignDataCore(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

SignDataCore(Stream, HashAlgorithmName, DSASignatureFormat)

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

ToString()

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

(繼承來源 Object)
ToXmlString(Boolean)

建立並傳回表示目前 DSA 物件的 XML 字串。Creates and returns an XML string representation of the current DSA object.

TryCreateSignature(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)

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

TryCreateSignature(ReadOnlySpan<Byte>, Span<Byte>, Int32)

嘗試在所提供緩衝區中為指定的雜湊建立 DSA 簽章。Attempts to create the DSA signature for the specified hash into the provided buffer.

TryCreateSignatureCore(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat, Int32)

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

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.

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

當在衍生類別中受到覆寫時,使用位元組型密碼嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。When overridden in a derived class, attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a byte-based password.

(繼承來源 AsymmetricAlgorithm)
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.

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

當在衍生類別中受到覆寫時,使用字元型密碼嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。When overriden in a derived class, attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password.

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

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

TryExportPkcs8PrivateKey(Span<Byte>, Int32)

當在衍生類別中受到覆寫時,嘗試以 PKCS#8 PrivateKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。When overridden in a derived class, attempts to export the current key in the PKCS#8 PrivateKeyInfo format into a provided buffer.

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

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

TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)

當在衍生類別中受到覆寫時,嘗試以 X.509 SubjectPublicKeyInfo 格式將目前的金鑰匯出至提供的緩衝區。When overridden in a derived class, attempts to export the current key in the X.509 SubjectPublicKeyInfo format into a provided buffer.

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

嘗試在所提供緩衝區中計算所提供資料的雜湊值。Attempts to compute the hash value of the provided data into a provided buffer.

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

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

TrySignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, Int32)

嘗試在所提供緩衝區中為指定的資料建立 DSA 簽章。Attempts to create the DSA signature for the specified data into the provided buffer.

TrySignDataCore(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat, Int32)

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

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

使用指定的雜湊演算法,並和提供的簽章比較,來為指定的資料計算出雜湊值,藉此驗證數位簽章是否有效。Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and comparing it to the provided signature.

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

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

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

使用指定的雜湊演算法,並和提供的簽章比較,來為指定的部分位元組陣列計算出資料的雜湊值,便藉此驗證數位簽章是否有效。Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and comparing it to the provided signature.

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

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

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)

使用指定的雜湊演算法,並和提供的簽章比較,來為位元組範圍中的資料計算出雜湊值,藉此驗證數位簽章是否有效。Verifies that a digital signature is valid by calculating the hash value of the data in a byte span using the specified hash algorithm and comparing it to the provided signature.

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

VerifyData(Stream, Byte[], HashAlgorithmName)

使用指定的雜湊演算法,並和提供的簽章比較,來為指定的資料流計算出雜湊值,藉此驗證數位簽章是否有效。Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and comparing it to the provided signature.

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

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

VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

VerifySignature(Byte[], Byte[])

在衍生類別中覆寫時,驗證所指定資料的 DSA 簽章。When overridden in a derived class, verifies the DSA signature for the specified data.

VerifySignature(Byte[], Byte[], DSASignatureFormat)

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

VerifySignature(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

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

VerifySignature(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

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

VerifySignatureCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

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

明確介面實作

IDisposable.Dispose()

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

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

(繼承來源 AsymmetricAlgorithm)

適用於

另請參閱