MessageSignerVerifyData Method (Byte, Byte) |
Verifies that the specified signature matches the specified hash.
Namespace:
SysadminsLV.PKI.Tools.MessageOperations
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public bool VerifyData(
byte[] message,
byte[] signature
)
Public Function VerifyData (
message As Byte(),
signature As Byte()
) As Boolean
public:
bool VerifyData(
array<unsigned char>^ message,
array<unsigned char>^ signature
)
member VerifyData :
message : byte[] *
signature : byte[] -> bool
Parameters
- message
- Type: SystemByte
The data that was signed. - signature
- Type: SystemByte
The signature data to be verified.
Return Value
Type:
BooleanTrue if hash matches the one stored in signature, otherwise
False.
Exceptions Exception | Condition |
---|
ArgumentNullException | message or signature parameter is null.
|
See Also