TBPCurveId
Data types, cryptography
Description
TBPCurveId identifies the Brainpool curve whose domain parameters BPLoadCurve should load. The three values cover the RFC 5639 curves used by the Brainpool suite.
The enumeration carries no numeric curve data. The parameters are compiled into PDFlibBrainpool and expanded on demand, so a selector is cheap to store in configuration while the full TBPCurve record is built only when curve arithmetic is needed.
The selector has no string form of its own; the curve label comes from the record returned by BPLoadCurve.
Syntax
Delphi
TBPCurveId = (bpP256r1, bpP384r1, bpP512r1);Values
| bpP256r1 | brainpoolP256r1, the 256-bit curve; the matching TBPCurve.Name is brainpoolP256r1 |
|---|---|
| bpP384r1 | brainpoolP384r1, the 384-bit curve; the matching TBPCurve.Name is brainpoolP384r1 |
| bpP512r1 | brainpoolP512r1, the 512-bit curve; the matching TBPCurve.Name is brainpoolP512r1 |
Remarks
BPLoadCurve is the only routine in the unit that consumes this enumeration; all other Brainpool routines take the expanded TBPCurve record.
The values are declared in ascending key size, so Low is the 256-bit curve and High is the 512-bit curve.
BPLoadCurve has no default case, so a value produced by a cast and outside the three labels returns an empty default record.
The names reported in TBPCurve.Name are the RFC 5639 spellings, which makes them usable directly in certificate and algorithm reporting.