Język

RSAOpenSsl.VerifyHash Metoda

Definicja

Sprawdza, czy podpis cyfrowy jest prawidłowy, określając wartość skrótu w podpisie przy użyciu określonego algorytmu wyznaczania wartości skrótu i wypełnienia oraz porównując go z podaną wartością skrótu.

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

Parametry

hash
Byte[]
signature
Byte[]
hashAlgorithm
HashAlgorithmName

Zwraca

true jeśli podpis jest prawidłowy; w przeciwnym razie, false.

Wyjątki

hash lub padding ma wartość null.

hashAlgorithm.Name jest lub nullEmpty.

padding jest nieznany lub nie jest obsługiwany przez tę implementację.

Dotyczy