THPDFPDFMACOptions Record

Selects the PDF MAC policy profile, digest algorithm, allowed digest set, and AES-GCM requirement used when adding or validating a PDF message authentication code

Declaration

THPDFPDFMACOptions= record
  Profile: THPDFPDFMACPolicyProfile;
  DigestAlgorithm: THPDFPDFMACDigestAlgorithm;
  AllowedDigestAlgorithms: THPDFPDFMACDigestAlgorithms;
  RequireAESGCM: boolean;
  class function Compatibility: THPDFPDFMACOptions; static;
  class function Modern: THPDFPDFMACOptions; static;
  class function HighAssurance: THPDFPDFMACOptions; static;
  class function Default: THPDFPDFMACOptions; static;
end;

Unit

HPDFDoc

Fields

FieldPurpose
ProfileTHPDFPDFMACPolicyProfile label recorded with the MAC: pmppCompatibility, pmppModern, pmppHighAssurance, or pmppCustom
DigestAlgorithmDigest used to key and compute the MAC when creating one, and the expected digest when the profile pins exactly one
AllowedDigestAlgorithmsSet of digests accepted during validation, enabling algorithm agility for older documents
RequireAESGCMWhen true, validation insists the MAC payload is AES-GCM protected
CompatibilityClass factory: SHA-256 primary, SHA-2 and SHA-3 set allowed, AES-GCM not required
ModernClass factory: SHA-384 primary, SHA-384/SHA-512/SHA-3 set allowed, AES-GCM not required
HighAssuranceClass factory: SHA3-512 only and AES-GCM required
DefaultClass factory returning Compatibility

Usage notes

Related APIs