Returns a signature of the data, using SignNR (Nyberg-Rueppel), the installed random number generator RNG and hash algorithm SHA-256.

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

Syntax

C#
public byte[] HashAndSign(
	byte[] PrivateKey,
	byte[] Data
)
Visual Basic
Public Function HashAndSign ( 
	PrivateKey As Byte(),
	Data As Byte()
) As Byte()
Visual C++
public:
virtual array<unsigned char>^ HashAndSign(
	array<unsigned char>^ PrivateKey, 
	array<unsigned char>^ Data
) sealed
F#
abstract HashAndSign : 
        PrivateKey : byte[] * 
        Data : byte[] -> byte[] 
override HashAndSign : 
        PrivateKey : byte[] * 
        Data : byte[] -> byte[] 

Parameters

PrivateKey
Type: array<System..::..Byte>[]()[][]
Private key.
Data
Type: array<System..::..Byte>[]()[][]
Data to sign.

Return Value

Type: array<Byte>[]()[][]
Signature.

Implements

EllipticCurve..::..HashAndSign(array<Byte>[]()[][], array<Byte>[]()[][])

Exceptions

See Also