RSACryptoServiceProvider.VerifyHash Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the provided hash value.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- rgbHash
- Type:
System.Byte
[]
The hash value of the signed data.
- str
- Type: System.String
The hash algorithm identifier (OID) used to create the hash value of the data.
- rgbSignature
- Type:
System.Byte
[]
The signature data to be verified.
| 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. |
Show: