RSAOpenSsl.VerifyHash Metoda

Definice

Ověří platnost digitálního podpisu tak, že určí hodnotu hash v podpisu pomocí zadaného hash algoritmu a odsazení a porovná ji s zadanou hodnotou hash.

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[]

Hodnota hash podepsaných dat.

signature
Byte[]

Data podpisu, která se mají ověřit.

hashAlgorithm
HashAlgorithmName

Hashovací algoritmus použitý k vytvoření hodnoty hash.

padding
RSASignaturePadding

Režim odsazení.

Návraty

truepokud je podpis platný; v opačném případě . false

Výjimky

hash nebo padding je null.

hashAlgorithm.Name je null nebo Empty.

padding je neznámý nebo tato implementace nepodporuje.

Platí pro