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

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

padding
RSASignaturePadding

パディング モード。

戻り値

署名が有効な場合は true。それ以外の場合は false

例外

hash または paddingnull です。

hashAlgorithm.Namenull または Empty です。

padding が不明であるか、この実装ではサポートされていません。

適用対象