---
title: "Appendix C. Test Vectors"
description: "Appendix C of draft-laget-pdf-pqs-00."
---

> Documentation Index
> Fetch the complete documentation index at: https://pdf-pqs.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Appendix C. Test Vectors

A normative test vector suite generated with a dedicated test CA (whose private keys are
published solely for testing) is maintained in the `pdf-pqs/spec` repository:

* `vectors/manifest.json` enumerates each vector, its validation inputs (trust anchors,
  certificates, CRLs, policy documents, and a fixed validation time), and its expected
  result and codes, conforming to `vectors/manifest.schema.json`.
* `vectors/README.md` documents each vector and the tooling used to generate it.
* `test-ca/` contains the test CA hierarchy and a reproducible generation script.

The suite exercises Place A, Place B, multiple signatures, ML-DSA-87, stripping attacks,
post-signature changes, byte tampering, every result code in [Appendix B](https://pdf-pqs.org/specification/codes), revocation before
and after a timestamp, expired certificates, domain-only chains, and FieldMDP-locked
documents using Place A. Edge cases covered include cross-domain covering signatures,
literal `%%EOF` sequences inside streams, embedded PDFs, cross-reference streams,
linearized files, unauthorized page edits within a Place B revision, attachments placed
two revisions after L, and unavailable policy documents.

Measurements from a prototype using ML-DSA-65 yielded a 10959-byte PDF-PQS signature
payload and a 12918-byte RSA host signature CMS carrying it in Place A.

Source: https://pdf-pqs.org/specification/test-vectors/index.mdx
