THotPDF.AddPubSecAgreementKeyMaterial Method
Declaration
procedure AddPubSecAgreementKeyMaterial(const CurveOID: AnsiString;
const PrivateScalar, OwnPublicPoint: TBytes);
Behaviour
Registers an X25519 / X448 / NIST-curve private scalar for loading public-key encrypted documents whose recipients use key agreement. CurveOID accepts the HPDFOIDX25519, HPDFOIDX448, HPDFOIDECP256, HPDFOIDECP384, and HPDFOIDECP521 constants. OwnPublicPoint, the recipient's uncompressed 0x04||X||Y point from the certificate, is required for the NIST curves and ignored for the Montgomery schemes
The same material is available in record form as THPDFAgreementKeyMaterial, which bundles CurveOID, PrivateScalar and OwnPublicPoint for API paths that accept or report key-agreement credentials as a single value
See also AddPubKeyAgreementRecipientWithSecret, Modern Signature Providers