Generates a private/public key pair.

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

Syntax

C#
public byte[][] GenerateKeyPair()
Visual Basic
Public Function GenerateKeyPair As Byte()()
Visual C++
public:
virtual array<array<unsigned char>^>^ GenerateKeyPair() sealed
F#
abstract GenerateKeyPair : unit -> byte[][] 
override GenerateKeyPair : unit -> byte[][] 

Return Value

Type: array<array<Byte>[]()[][]>[]()[][]
Private [0] and public key [1].

Implements

EllipticCurve..::..GenerateKeyPair()()()()

Remarks

Generates a private/public key pair, as a byte[2][27] array. If we set

byte[][] KeyPair = GenerateKeyPair();

then the private key is KeyPair[0], and the public key is KeyPair[1].

Exceptions

See Also