Returns true if the signature is valid.

Namespace: BasicCard.Crypto.EC
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)

Syntax

C#
bool HashAndVerify(
	byte[] PublicKey,
	byte[] data,
	byte[] signature
)
Visual Basic
Function HashAndVerify ( 
	PublicKey As Byte(),
	data As Byte(),
	signature As Byte()
) As Boolean
Visual C++
bool HashAndVerify(
	array<unsigned char>^ PublicKey, 
	array<unsigned char>^ data, 
	array<unsigned char>^ signature
)
F#
abstract HashAndVerify : 
        PublicKey : byte[] * 
        data : byte[] * 
        signature : byte[] -> bool 

Parameters

PublicKey
Type: array<System..::..Byte>[]()[][]
Public key.
data
Type: array<System..::..Byte>[]()[][]
Data to verify.
signature
Type: array<System..::..Byte>[]()[][]
Signature of data.

Return Value

Type: Boolean
True if signature is valid, otherwise false.

Remarks

This is the Signature Verification Operation of IEE P1363 scheme ECSSA: Elliptic Curve Signature Scheme with Appendix.

Exceptions

See Also