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, PubY | Receive the affine coordinates of the derived public key point [D]G |
|---|---|
| D | Private scalar in the range 1 .. N-1 |
| Curve | Curve parameters loaded via BPLoadCurve |
Return values
| False | D is out of range or scalar multiplication yields the point at infinity |
|---|---|
| True | PubX 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