# Cryptographic PDF signatures — research, 2026-11-18

Research only, not an approved product requirement or implementation plan.
No audit-page decision, dependency exception or production change is implied.

## Viable formats before recommendation

1. **Embedded PDF approval signatures:** ISO32000, section12.8 (PDF1.7 edition
   consulted), defines signature fields/dictionaries, `/ByteRange`, `/Contents`
   and incremental-revision preservation. CMS detached SignedData (RFC5652) is
   the standard cryptographic envelope used for common interoperable PDF
   signatures. Basic legacy CMS-in-PDF support is a viable compatibility target,
   but does not automatically satisfy PAdES Baseline requirements.
2. **PAdES Baseline:** ETSI EN319142-1 profiles PDF signatures. B-B is the basic
   baseline; B-T adds trusted time evidence; B-LT embeds validation material;
   B-LTA adds archival timestamp protection/renewal. The European Commission's
   maintained DSS documentation describes these profiles and notes that not
   every CMS or even CAdES Baseline signature is suitable for PAdES Baseline.
3. **Detached CMS sidecar:** RFC5652 SignedData can authenticate an external
   file. This is technically simpler than inserting a PDF signature but creates
   another artifact, not an embedded PDF signature/reader signature-panel entry.
   It is therefore not the answer when the requirement is a self-contained
   digitally signed PDF.

**Recommendation:** for interoperable embedded signatures, target PAdES B-B
as the minimum baseline, consider B-T where future proof of signing time
matters. Use an established signing component and crypto implementation, not
custom crypto/PDF parsing. Long-term document retention may justify LT/LTA,
which add certificate/revocation/timestamp operations and maintenance; they
are not the simplest initial scope. Format conformance alone establishes
neither certificate trust nor jurisdiction-specific legal effect.

## Embedding mechanism

Prepare the document revision, including its optional visible signature
appearance and a signature field/dictionary. Reserve a sufficiently sized
`/Contents` hex-string region; finalize `/ByteRange` offsets to cover the signed
revision except that region. Hash those ranges, build/sign the required CMS
signed attributes with the signing key, and insert the CMS bytes in the reserved
region without moving offsets/changing signed bytes. Include the signing
certificate and appropriate chain material/profile attributes. Test signature,
coverage, structure/profile and trust in independent validators; a hash alone
or an image is not a signature.

A signature can have an invisible appearance and needs no extra PDF page.
PAdES B-B does not require contacting a timestamp authority to sign; certificate
issuance, trust provisioning and revocation checking still need operational
planning. A local asserted signing date is not a trusted timestamp. Later
signatures must preserve prior revisions using incremental updates; preserving
old signed bytes does not imply every appended modification is permitted.
Ordinary whole-file rewriting/re-overlay after signing is incompatible with
preserving existing embedded signatures.

## Identity and Signet-specific implications

An employee signature needs a key/certificate attributed to that employee and
a defensible authorization/control mechanism (e.g. token or remote signing
service). One organisation-held key signs as the organisation, not separately
as every employee. A server certificate can seal the released artifact and
attest application records, but must not be represented as an employee-held
cryptographic signature. Self-signed certificates can support cryptographic
integrity; recipient trust requires provisioning and does not appear by magic.

Current Signet sequential sign-off uses qpdf overlays and release rewriting.
Adding employee cryptographic signatures at each party would need a
signature-preserving revision pipeline, not simply signing each existing
intermediate file. Applying one organisational signature AFTER all current
rendering is a smaller integration boundary but has the different meaning
above. This is an architectural observation, not approval to implement it.

No native signing component has been selected or benchmarked for the60MB
aggregate target. Current dependency/vendor constraints require explicit owner
approval for any additional crypto/PDF-signing dependency or third-party fork.
A certificate/key lifecycle (issuance, storage/token access, renewal, revocation,
backup/recovery and verification) is part of the feature, not merely an API call.
The DSS Java implementation is a documentation/validation reference here, NOT
a proposed production dependency (Java is prohibited).

## Sources and verification limits

- ISO32000-1:2008 section12.8 and Table252, hosted by Adobe:
  https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf
  Retrieved and relevant signature/byte-range/incremental-update text read.
- RFC5652, especially section5 SignedData:
  https://www.rfc-editor.org/rfc/rfc5652
  Text retrieved and SignedData/detached-content structure inspected.
- European Commission DSS documentation, signature levels, PAdES and external
  CMS signing sections:
  https://ec.europa.eu/digital-building-blocks/DSS/webapp-demo/doc/dss-documentation.html
  Retrieved; profiles, byte-range digest preparation and CMS-vs-PAdES caveat read.
- Normative PAdES reference, linked by that official implementation guide:
  https://www.etsi.org/deliver/etsi_en/319100_319199/31914201/01.02.01_60/en_31914201v010201p.pdf
  Direct access returned403 this session. Profile recommendation is supported
  by the retrieved Commission documentation, NOT a claimed fresh clause-by-clause
  review of the normative ETSI PDF. No implementation conformance certified.

No tools/packages installed, no code changes, no remote PDF uploads or private
key operations. Downloaded public source documents are outside the repository
under `~/.local/var/signet-work/`. Background subagents are unavailable in this
session, so source research was performed directly.
