THotPDF.AddPubKeyAgreementRecipientWithSecret Method

宣言

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

動作

外部の ECDH ツールを必要とせず、originator の秘密スカラーからインプロセスで共有シークレットを計算する便利なラッパーです。X25519 と X448 は移植可能な Montgomery ladder を実行し、NIST 曲線は CNG やその他のシステム暗号プロバイダーを使わない、移植可能なインプロセスの素体演算を実行します。OriginatorPublicKey は originator の公開鍵で、Montgomery 系の方式では HPDFX25519PublicFromScalar と HPDFX448PublicFromScalar が導出します。OwnPublicPoint は originator の非圧縮形式 0x04||X||Y の点で、NIST 曲線でのみ必要です

関連項目: AddPubSecAgreementKeyMaterial、モダン署名プロバイダー