THotPDF.AddPubKeyAgreementRecipient Method
呼び出し側または HSM が導出した合意用の素材を使って、CMS KeyAgreeRecipientInfo エンベロープを構築します
宣言
procedure AddPubKeyAgreementRecipient(const CertificateDER: array of byte; Permissions: THPDFProtectOptions; Scheme: THPDFPubKeyAgreementScheme; const OriginatorPublicKey, SharedSecret: array of byte);
使用上の注意
- 対応する方式は P-256、P-384、P-521、X25519、X448 です
- The certificate algorithm and key size must match
Scheme - The matching X9.63 KDF derives an AES-256 key-encryption key
- すべてゼロの共有シークレットは拒否され、一時的なシークレットのコピーはクリアされます