THotPDF.AddPubKeyRecipientCertificate Method
Baut einen CMS-Recipient-Envelope für die Public-Key-Verschlüsselung mit AES-256 aus PDF 2.0 auf und registriert ihn
Deklaration
procedure AddPubKeyRecipientCertificate(const CertificateDER: array of byte; Permissions: THPDFProtectOptions; HashAlgorithm: THPDFRSAOAEPHash= rohSHA256; MGFHashAlgorithm: THPDFRSAOAEPHash= rohSHA256);
Verwendungshinweise
- Call
EnablePubKeyEncryptionwithaes256first - The certificate must contain an RSA public key
- Die Digest-Richtlinien für RSA-OAEP und MGF1 sind explizit und unabhängig voneinander wählbar
- Der erzeugte Envelope verwendet AES-256-CBC für die Nutzlast aus Seed und Berechtigungen