THotPDF.AddPubKeyRecipientCertificate Method
为 PDF 2.0 AES-256 公钥加密构建并注册 CMS 收件人信封
声明
procedure AddPubKeyRecipientCertificate(const CertificateDER: array of byte; Permissions: THPDFProtectOptions; HashAlgorithm: THPDFRSAOAEPHash= rohSHA256; MGFHashAlgorithm: THPDFRSAOAEPHash= rohSHA256);
使用说明
- Call
EnablePubKeyEncryption与aes256first - The certificate must contain an RSA public key
- RSA-OAEP 摘要与 MGF1 摘要策略都是显式的,可以独立选择
- 生成的信封使用 AES-256-CBC 保护 seed 和权限载荷