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 where the profile pins exactly one
AllowedDigestAlgorithmsSet of digests accepted during validation, giving algorithm agility for older documents
RequireAESGCMWhen true, validation insists that the MAC payload is AES-GCM protected
CompatibilityClass factory: SHA-256 primary, SHA-2 and SHA-3 set allowed, AES-GCM not called for
ModernClass factory: SHA-384 primary, SHA-384/SHA-512/SHA-3 set allowed, AES-GCM not called for
HighAssuranceClass factory: SHA3-512 only, with AES-GCM required
DefaultClass factory handing back Compatibility

Usage notes

Related APIs