Click or drag to resize

RSACryptoServiceProviderVerifyHash Method

Verifies the specified signature data by comparing it to the signature computed for the specified hash value.

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public bool VerifyHash(
	byte[] rgbHash,
	string str,
	byte[] rgbSignature
)

Parameters

rgbHash  Byte
The hash value of the data to be signed.
str  String
The hash algorithm identifier (OID) used to create the hash value of the data.
rgbSignature  Byte
The signature data to be verified.

Return Value

Boolean
true if the signature verifies as valid; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe rgbHash parameter is null. -or- The rgbSignature parameter is null.
CryptographicException The cryptographic service provider (CSP) cannot be acquired. -or- The signature cannot be verified.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also