BPSignFixedK

Cryptography

Description

Produces an ECDSA signature with a caller-supplied nonce

Syntax

Delphi

Function BPSignFixedK(Out R, S: TBPValue; Const E, D, K: TBPValue; Const Curve: TBPCurve): Boolean;

Parameters

R, SReceive the ECDSA signature components modulo Curve.N
EMessage digest integer reduced or truncated per ECDSA rules
DPrivate signing scalar in 1 .. N-1
KPer-message nonce scalar in 1 .. N-1
CurveCurve parameters loaded via BPLoadCurve

Return values

FalseD or K is out of range, or R or S reduces to zero
TrueR and S hold the non-zero ECDSA signature integers

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

BPLoadCurve, BPKeyGen, BPVerify