THotPDF.AddPubKeyAgreementRecipientWithSecret Method
Declaration
procedure AddPubKeyAgreementRecipientWithSecret(
const CertificateDER: array of byte;
Permissions: THPDFProtectOptions; Scheme: THPDFPubKeyAgreementScheme;
const OriginatorPublicKey, OriginatorPrivateScalar,
OwnPublicPoint: array of byte);
Behavior
Convenience wrapper that computes the shared secret in-process from the originator private scalar instead of requiring external ECDH tooling: X25519 and X448 run the portable Montgomery ladders, and the NIST curves run portable in-process prime-field arithmetic without CNG or any other system crypto provider. OriginatorPublicKey is the originator's public key, which HPDFX25519PublicFromScalar and HPDFX448PublicFromScalar derive for the Montgomery schemes; OwnPublicPoint is the originator's uncompressed 0x04||X||Y point and is only needed for the NIST curves
See also AddPubSecAgreementKeyMaterial, Modern Signature Providers