Verifies a signature, returning 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 Verify(
	byte[] PublicKey,
	byte[] hash,
	byte[] signature
)
Visual Basic
Function Verify ( 
	PublicKey As Byte(),
	hash As Byte(),
	signature As Byte()
) As Boolean
Visual C++
bool Verify(
	array<unsigned char>^ PublicKey, 
	array<unsigned char>^ hash, 
	array<unsigned char>^ signature
)
F#
abstract Verify : 
        PublicKey : byte[] * 
        hash : byte[] * 
        signature : byte[] -> bool 

Parameters

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

Return Value

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

Remarks

This is IEEE P1363 primitive ECVP: Elliptic Curve Verification Primitive.

Exceptions

See Also