THotPDF.AddPubKeyAgreementRecipientWithSecret Method

Declaration

procedure AddPubKeyAgreementRecipientWithSecret(
  const CertificateDER: array of byte;
  Permissions: THPDFProtectOptions; Scheme: THPDFPubKeyAgreementScheme;
  const OriginatorPublicKey, OriginatorPrivateScalar,
  OwnPublicPoint: array of byte);

Behaviour

Convenience wrapper that computes the shared secret in-process from the originator private scalar rather than requiring external ECDH tooling: X25519 and X448 run the portable ladders, the NIST curves go via CNG. 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