Returns a signature of the hash, using the
installed random number generate RNG. This function uses
Nyberg-Rueppel (NR) algorithm.
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>[]()[][]Signature.
Implements
EllipticCurve..::..Sign(array<Byte>[]()[][], array<Byte>[]()[][])
Exceptions
See Also