BPKeyGen

Cryptography

Description

Derives the public key [d]G for a Brainpool curve

Syntax

Delphi

Function BPKeyGen(Out PubX, PubY: TBPValue; Const D: TBPValue; Const Curve: TBPCurve): Boolean;

Parameters

PubX, PubYReceive the affine coordinates of the derived public key point [D]G
DPrivate scalar in the range 1 .. N-1
CurveCurve parameters loaded via BPLoadCurve

Return values

FalseD is out of range or scalar multiplication yields the point at infinity
TruePubX and PubY hold the valid affine public key coordinates

Remarks

Part of the pure-Pascal Brainpool ECDSA suite covering brainpoolP256r1, brainpoolP384r1 and brainpoolP512r1 (RFC 5639). Arithmetic runs on a shared 528-bit limb core; group operations use Jacobian coordinates. Signing takes the nonce from the caller so random or deterministic (RFC 6979) policies remain in the integrator's control

See also

BPSignFixedK, BPVerify