RSACryptoServiceProviderVerifyHash Method |
Verifies the specified signature data by comparing it to the signature computed
for the specified hash value.
Namespace: Crestron.SimplSharp.CryptographyAssembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntaxpublic 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
Booleantrue if the signature verifies as valid; otherwise, false.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | The 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