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, S | Receive the ECDSA signature components modulo Curve.N |
|---|---|
| E | Message digest integer reduced or truncated per ECDSA rules |
| D | Private signing scalar in 1 .. N-1 |
| K | Per-message nonce scalar in 1 .. N-1 |
| Curve | Curve parameters loaded via BPLoadCurve |
Return values
| False | D or K is out of range, or R or S reduces to zero |
|---|---|
| True | R 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