Returns a signature of the 20-byte hash or 32-byte, using the installed random number generate RNG.

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

Syntax

C#
byte[] Sign(
	byte[] PrivateKey,
	byte[] hash
)
Visual Basic
Function Sign ( 
	PrivateKey As Byte(),
	hash As Byte()
) As Byte()
Visual C++
array<unsigned char>^ Sign(
	array<unsigned char>^ PrivateKey, 
	array<unsigned char>^ hash
)
F#
abstract Sign : 
        PrivateKey : byte[] * 
        hash : byte[] -> byte[] 

Parameters

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

Return Value

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

Exceptions

See Also