A PDF-PQS signature is a DER-encoded ContentInfo [RFC5652] whose contentType is
id-signedData. The encapsulated SignedData structure MUST satisfy all of the
following constraints:
encapContentInfo.eContentTypeMUST beid-data, andeContentMUST be absent (detached signature).signerInfosMUST contain exactly oneSignerInfo.digestAlgorithmMUST specify SHA-512 [FIPS180-4].signatureAlgorithmMUST beid-ml-dsa-65orid-ml-dsa-87[RFC9882]. The signature MUST be generated using pure ML-DSA [FIPS204] with an empty context string.- The signer’s certificate public key algorithm MUST match
signatureAlgorithm. certificatesMUST include the signer’s end-entity certificate and MAY include additional certificates from the certification path.crlsSHOULD be omitted; revocation data is conveyed externally or in the PDF Document Security Store (see Section 8).
ML-DSA-44 MUST NOT be used. Pre-hash ML-DSA (HashML-DSA) MUST NOT be used. Signers SHOULD use ML-DSA-65 for end-entity signing keys.
4.1. Signed Attributes
The signedAttrs field of SignerInfo MUST contain each of the following attributes
exactly once, and each attribute MUST carry a single attribute value:
-
content-type:
id-data. -
message-digest: The SHA-512 digest computed over the covered bytes
[0, L). -
signing-certificate-v2: An
ESSCertIDv2structure identifying the signer’s certificate [RFC5035], computed with SHA-512. Because SHA-512 is not the default hash algorithm forESSCertIDv2, thehashAlgorithmfield MUST be explicitly encoded. -
pdf-byte-length: The integer value L (Section 5), encoded as follows:
id-aa-pdfByteLength OBJECT IDENTIFIER ::= { id-pdfpqs 3 }
PdfByteLength ::= INTEGER (1..MAX)The SignerInfo MAY include the signing-time signed attribute. However, a verifier
MUST NOT rely on signing-time as trustworthy evidence of when the signature was
created.
In accordance with [RFC5652], signedAttrs is DER-encoded as a SET OF Attribute.
Signers MUST sort the encoded Attribute elements in ascending lexicographical order of
their DER encodings prior to signing. Because verifying implementations such as OpenSSL
re-encode signedAttrs in canonical DER order before signature verification, an unsorted
set fails verification.
4.2. Unsigned Attributes
The SignerInfo SHOULD include an id-aa-signatureTimeStampToken unsigned attribute
[RFC3161] covering the signature field of SignerInfo. To provide post-quantum
temporal assurance, the timestamp token MUST be signed with ML-DSA. A timestamp token
signed with a classical algorithm offers no protection against a quantum adversary, and
verifiers MUST ignore it.
4.3. Size
An ML-DSA-65 PDF-PQS signature containing only the signer’s certificate occupies approximately 11 KB. Including an ML-DSA signature timestamp token along with its TSA certificate adds approximately 10 KB.