Returns a 54-byte signature of the 20-byte hash, using the
installed random number generate RNG.
Namespace: BasicCard.Crypto.ECAssembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)
Syntax
C# |
---|
public byte[] Sign(
byte[] PrivateKey,
byte[] hash
) |
Visual Basic |
---|
Public Function Sign (
PrivateKey As Byte(),
hash As Byte()
) As Byte() |
Visual C++ |
---|
public:
virtual array<unsigned char>^ Sign(
array<unsigned char>^ PrivateKey,
array<unsigned char>^ hash
) sealed |
F# |
---|
abstract Sign :
PrivateKey : byte[] *
hash : byte[] -> byte[]
override 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>[]()[][]54 byte signature.
Implements
EllipticCurve..::..Sign(array<Byte>[]()[][], array<Byte>[]()[][])
Exceptions
See Also