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
- 憑證演算法與金鑰長度必須符合
Scheme - 相符的 X9.63 KDF 會衍生 AES-256 金鑰加密金鑰
- 全零的共享祕密會被拒絕,暫存的祕密副本會被清除