PAdES vs PKCS#7: Understanding PDF Digital Signature Standards

An authoritative technical analysis of PDF digital signature specifications, comparing legacy PKCS#7/CMS signatures with modern ETSI PAdES (ISO 32000-2) profiles, byte-range hashing, and Long-Term Validation (LTV).

By Minhaj, Founder & Lead Engineer, PDF SignCheck·
🔒
Test & Parse Your PDF Signature Structure

Upload any signed PDF document to inspect its embedded PKCS#7 / PAdES signature dictionary, extract signing certificates, and calculate cryptographic hash integrity.

Daily Limit

Upload your PDF

Drag and drop your file here, or click to browse

.pdf·up to 50 MB

1. Fundamentals of PDF Digital Signatures

Unlike simple electronic signatures (which are merely visual image overlays or scanned handwriting marks), a cryptographic digital signature locks the binary integrity of a document using asymmetric Public Key Infrastructure (PKI).

When a PDF is signed, the PDF specification (ISO 32000) reserves a signature dictionary (`/Sig`) within the PDF structure containing specific keys:

  • /ByteRange: An array of integers specifying the exact byte offsets and lengths of the document that are covered by the cryptographic signature.
  • /Contents: A hex-encoded byte stream containing the actual ASN.1 cryptographic signature container (either PKCS#7 or PAdES format).
  • /SubFilter: Identifies the signature encoding standard, such as adbe.pkcs7.detached, ETSI.CAdES.detached, or adbe.pkcs7.sha1.
  • /M: The claimed signing timestamp recorded by the signer's computer or server clock.

2. PKCS#7 / CMS (RFC 5652) Signature Architecture

PKCS#7 (Public-Key Cryptography Standards #7), standardized by the IETF as Cryptographic Message Syntax (CMS - RFC 5652), is the historical standard for digital signatures in PDF documents.

Under the legacy SubFilter adbe.pkcs7.detached, the PDF file bytes outside of the /Contentshex container are hashed (typically using SHA-256 or SHA-1). The hash is then encrypted with the signer's private RSA or ECDSA key and encapsulated alongside the X.509 signer certificate and intermediate CA certificates.

Key Characteristics of PKCS#7:
  • Universal compatibility across older PDF readers and government signing utilities.
  • Basic timestamp inclusion, usually based on local system time rather than a RFC 3161 Time Stamping Authority (TSA).
  • No embedded Online Certificate Status Protocol (OCSP) or Certificate Revocation List (CRL) responses, requiring live network calls at verification time.

3. ETSI PAdES (ISO 32000-2 & ETSI EN 319 142) Overview

PAdES (PDF Advanced Electronic Signatures) was developed by the European Telecommunications Standards Institute (ETSI) to meet rigorous European eIDAS regulation requirements and modern global enterprise security compliance.

PAdES extends CMS by embedding validation data (OCSP responses, CRL revoking data, and TSA timestamps) directly inside the PDF file structure itself. This enables Long-Term Validation (LTV), ensuring signatures remain verifiable decades after creation—even if the issuing CA shuts down or network CRL servers disappear.

PAdES Conformance Levels & Profiles

  • PAdES-B-B (Basic Building Block): Includes the signed document hash, X.509 signing certificate chain, and cryptographic signature algorithm parameters.
  • PAdES-B-T (Timestamp): Adds a cryptographically secure RFC 3161 timestamp issued by an independent Time Stamping Authority (TSA) to prevent post-dating or pre-dating fraud.
  • PAdES-B-LT (Long-Term): Embeds all revocation evidence (OCSP responses and CRLs) into the PDF Document Security Store (DSS) dictionary at signing time.
  • PAdES-B-LTA (Long-Term Availability): Periodically appends new document time-stamps to preserve cryptographic strength over years as algorithms evolve.

Download PDF Signature Validator on Mobile

Verify digital signatures, check cryptographic validity, and view PDF documents securely directly on your Android device.

Get it on Google Play

4. Comparing PKCS#7 vs PAdES: Technical Feature Matrix

FeaturePKCS#7 / CMS (Legacy)ETSI PAdES (Modern)
Standard SpecificationRFC 5652 / RFC 2315ETSI EN 319 142 / ISO 32000-2
SubFilter Identifieradbe.pkcs7.detachedETSI.CAdES.detached
Long-Term Validation (LTV)❌ Requires external network calls✔️ Embedded in Document Security Store (DSS)
Trusted TimestampingOptional / System time✔️ Mandatory RFC 3161 TSA timestamp
Regulatory FrameworksGeneric commercial / legacy IT ActEU eIDAS, US ESIGN, Modern CCA eSign

5. How PDF SignCheck Validates Both Standards

PDF SignCheck features a unified hybrid parsing engine that handles both legacy PKCS#7 structures and advanced PAdES profiles seamlessly:

  1. Byte Range Slice Parsing: Extracts the exact binary chunks defined by the PDF /ByteRange array without loading unnecessary memory headers.
  2. ASN.1 DER Decoding: Decodes the hex /Contents payload to inspect X.509 certificates, public keys, signed attributes, and CRL/OCSP tokens.
  3. Digest Recalculation: Re-computes SHA-256 document digests to detect even single-bit byte manipulations or post-signature modifications.
  4. Root Trust Store Cross-Check: Checks certificates against Mozilla's Root CA store, Adobe Approved Trust List (AATL), and CCA India root certificates.
  5. Visual Stamp Generation: Embeds a verified visual badge (`Signature Valid ✓`) into the document while preserving the original cryptographic byte ranges.

6. Frequently Asked Questions (FAQs)

Which standard is used for Indian Aadhaar and DigiLocker documents?Most Indian government documents (Aadhaar cards, DigiLocker certificates, e-District PDFs) use PKCS#7 detached signatures (adbe.pkcs7.detached) issued by licensed Certifying Authorities under the Controller of Certifying Authorities (CCA) India.
Why does Adobe Acrobat say "Signature is LTV Enabled"?This means the document uses the PAdES format with an embedded Document Security Store (DSS), containing all certificate revocation lists (CRLs) and timestamp tokens needed for perpetual verification.
Online PDF Verifier

Ready to verify your PDF digital signature?

Validate certificates against NIC, eMudhra, and global trusted roots in under 2 seconds. Fully secure and private browser-side verification.

Verify Your PDF Now

Zero-Knowledge Privacy

Files are processed strictly in secure memory modules inside your local browser. No server storage.

Cryptographic Standards

Fully compliant with IETF RFC 5652 (CMS), Adobe PDF specs, eIDAS, and Controller of Certifying Authorities (CCA).

Verify Anonymously

No personal registration or document tracking is required. Verify up to 2 files daily as guest.

Detailed Audit Trails

Generates downloadable, verified PDFs with structural signature stamps and trust summaries.

Edge Sandbox Security

Verification executes inside sandboxed browser modules to ensure isolated document handling.

Zero Data Logging

Absolutely no logging of files, names, email contents, or signature details. Pure privacy.