Verifies the DSA signature for the specified data.
Namespace:
Rebex.Security.Cryptography
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Overrides Function VerifySignature ( _ rgbHash As Byte(), _ rgbSignature As Byte() _ ) As Boolean |
C# |
---|
public override bool VerifySignature( byte[] rgbHash, byte[] rgbSignature ) |
Parameters
- rgbHash
- Type: array<System..::..Byte>[]()[][]
The SHA1 hash of signed data to be verified.
- rgbSignature
- Type: array<System..::..Byte>[]()[][]
The signature to be verified for rgbData.
Return Value
true if the signature verifies as valid; otherwise, false.Remarks
DSA signature is a pair of numbers r and s.
The rgbSignature parameter must be 40 bytes long.
Bytes 0..19 must contain the value of r, bytes 20..39 must contain the value of s.