語言

RSAOpenSsl.VerifyHash 方法

定義

透過使用指定的雜湊演算法與填充,確定簽章中的雜湊值,並與提供的雜湊值比較,驗證數位簽章的有效性。

public:
 override bool VerifyHash(cli::array <System::Byte> ^ hash, cli::array <System::Byte> ^ signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public override bool VerifyHash(byte[] hash, byte[] signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
override this.VerifyHash : byte[] * byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> bool
Public Overrides Function VerifyHash (hash As Byte(), signature As Byte(), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Boolean

參數

hash
Byte[]
signature
Byte[]
hashAlgorithm
HashAlgorithmName

傳回

true如果簽名有效;否則,。 false

例外狀況

hash 或 padding 為 null。

hashAlgorithm。Name 是 null 或 Empty。

padding 未知,或此實作不支援。

適用於