Click or drag to resize

RSACryptoServiceProviderVerifyData Method

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

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public bool VerifyData(
	byte[] buffer,
	Object halg,
	byte[] signature
)

Parameters

buffer  Byte
The data that was signed.
halg  Object
The name of the hash algorithm used to create the hash value of the data.
signature  Byte
The signature data to be verified.

Return Value

Boolean
true if the signature verifies as valid; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe halg parameter is null.
ArgumentExceptionThe halg parameter is not a valid type.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also