BPVerify
密碼編譯
描述
驗證 Brainpool 曲線上的 ECDSA 簽章
語法
Delphi
Function BPVerify(Const R, S: TBPValue; Const E, PubX, PubY: TBPValue; Const Curve: TBPCurve): Boolean;參數
| R, S | 要驗證的 ECDSA 簽章分量 |
|---|---|
| E | 訊息摘要整數 |
| PubX, PubY | 簽署者在 Curve 上的仿射公開金鑰座標 |
| Curve | 透過 BPLoadCurve 載入的曲線參數 |
傳回值
| False | R 或 S 超出 1 .. N-1、(PubX, PubY) 不在曲線上,或驗證失敗 |
|---|---|
| True | 簽章對 (PubX, PubY) 之下的 E 有效 |
備註
屬於純 Pascal 的 Brainpool ECDSA 套件,涵蓋 brainpoolP256r1、brainpoolP384r1 與 brainpoolP512r1(RFC 5639)。算術運算在共用的 528 位元 limb 核心上執行;群組運算使用 Jacobian 座標。簽署時 nonce 由呼叫端提供,因此隨機或確定性(RFC 6979)原則仍由整合者掌控