Returns a 42-byte signature of the data.

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

Parameters

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

Return Value

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

Implements

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

Remarks

Returns a 42-byte signature of the data. On entry, rand should be a 160-bit random number (i.e. uniformly distributed between 0 and 2^160-1) using msb first order.

Exceptions

See Also