RSAOpenSsl.VerifyHash メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したハッシュ アルゴリズムとパディングを使用して署名のハッシュ値を決定し、指定されたハッシュ値と比較することで、デジタル署名が有効であることを確認します。
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 または padding が null。
padding が不明であるか、この実装でサポートされていません。