DSACryptoServiceProvider.VerifyData(Byte[], Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies the specified signature data by comparing it to the signature computed for the specified data.
public:
bool VerifyData(cli::array <System::Byte> ^ rgbData, cli::array <System::Byte> ^ rgbSignature);
public bool VerifyData (byte[] rgbData, byte[] rgbSignature);
override this.VerifyData : byte[] * byte[] -> bool
member this.VerifyData : byte[] * byte[] -> bool
Public Function VerifyData (rgbData As Byte(), rgbSignature As Byte()) As Boolean
Parameters
- rgbData
- Byte[]
The data that was signed.
- rgbSignature
- Byte[]
The signature data to be verified.
Returns
true
if the signature verifies as valid; otherwise, false
.
Remarks
This method verifies the DSA digital signature produced by SignData.
DSA uses the SHA1 hash algorithm.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.