BPVerify

Cryptography

Description

Verifies an ECDSA signature over a Brainpool curve

Syntax

Delphi

Function BPVerify(Const R, S: TBPValue; Const E, PubX, PubY: TBPValue; Const Curve: TBPCurve): Boolean;

Parameters

R, SECDSA signature components to verify
EMessage digest integer
PubX, PubYSigner affine public key coordinates on Curve
CurveCurve parameters loaded via BPLoadCurve

Return values

FalseR or S is out of 1 .. N-1, (PubX, PubY) is not on the curve, or verification fails
TrueThe signature is valid for E under (PubX, PubY)

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, BPPointOnCurve, BPSignFixedK