Returns a 42-byte signature of the data, using the installed
random number generator RNG.
Namespace: BasicCard.Crypto.ECAssembly: 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