---
title: "2. Conventions and Definitions"
description: "Section 2 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.

# 2. Conventions and Definitions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [[RFC2119]](https://pdf-pqs.org/specification/references#rfc2119) [[RFC8174]](https://pdf-pqs.org/specification/references#rfc8174) when, and only when, they appear in all capitals, as shown here.

The following terms are used throughout this document:

- **Revision**: The bytes of a file extending from the end of the preceding revision (or from byte
  offset 0 for the initial revision) to a revision end. An incremental update
  ([[ISO32000-2]](https://pdf-pqs.org/specification/references#iso32000-2), Section 7.5.6) appends a new revision immediately following the prior
  one. The PDF objects added or modified by a revision correspond to the in-use entries
  of its cross-reference section.

- **Revision end**: A byte offset determined from the PDF cross-reference chain as specified below. A `%%EOF`
  sequence appearing within an indirect object, stream, string literal, or comment is not
  a revision end. A verifier determines the set of revision ends by traversing the
  cross-reference chain backward from the end of the file:

  1. The final `startxref` keyword in the file identifies the byte offset of the final
     cross-reference section, which is either a cross-reference table and trailer or a
     cross-reference stream ([[ISO32000-2]](https://pdf-pqs.org/specification/references#iso32000-2), Sections 7.5.4, 7.5.5, and 7.5.8).
  2. The `/Prev` entry of each cross-reference section identifies the offset of the
     preceding cross-reference section; the initial section omits `/Prev`. Every offset
     in the chain lies within the bounds of the file, and the chain contains no cycles.
  3. Each cross-reference section in the chain terminates one revision. The `startxref`
     entry following that section specifies its offset and is followed by a `%%EOF`
     marker. The revision end is the byte offset immediately following one of four
     sequences: `%%EOF`, `%%EOF` LF, `%%EOF` CR, or `%%EOF` CR LF, where CR is octet 0x0D
     and LF is octet 0x0A.

  In a hybrid-reference file ([[ISO32000-2]](https://pdf-pqs.org/specification/references#iso32000-2), Section 7.5.8.4), a cross-reference table
  and the cross-reference stream referenced by its `/XRefStm` entry count as a single
  section. In a linearized file ([[ISO32000-2]](https://pdf-pqs.org/specification/references#iso32000-2), Annex F), the initial revision comprises
  both the first-page cross-reference section and the main cross-reference section; that
  revision terminates after the main section, and the `%%EOF` following the first-page
  section is not a revision end.

- **Covered bytes**: The contiguous byte prefix `[0, L)` of the PDF file protected by a PDF-PQS signature,
  where L is the integer value of the `pdf-byte-length` signed attribute ([Section 5](https://pdf-pqs.org/specification/covered)).

- **Classical signature**: A PDF digital signature computed using RSA, ECDSA, or EdDSA.

- **Host signature**: The classical PDF signature whose CMS SignedData carries a PDF-PQS signature as an
  unsigned attribute (see [Section 6.1](https://pdf-pqs.org/specification/placement#place-a)).

- **Signing domain**: A DNS domain name extracted from a certificate's `subjectAltName` extension. Each
  `rfc822Name` entry contributes the substring following its final `@` character; each
  `dNSName` entry that contains no wildcard label contributes the DNS name itself. Domain
  comparisons are performed case-insensitively in lowercase. A single certificate may
  identify multiple signing domains. If no qualifying `subjectAltName` entry is present,
  the certificate has no signing domain; verifiers MUST NOT extract a domain from an
  email address in the subject Distinguished Name (DN).

- **N**: The OID arc corresponding to the CloudRaker Private Enterprise Number (PEN),
  `1.3.6.1.4.1.<PEN>`. The OID arc defined by this specification, `id-pdfpqs`, is `N.1`
  ([Section 12](https://pdf-pqs.org/specification/iana)). Until IANA assigns the PEN, implementations use the placeholder arc
  `1.3.6.1.4.1.99999` for N, such that `N.1.3` is `1.3.6.1.4.1.99999.1.3`.

Source: https://pdf-pqs.org/specification/conventions-and-definitions/index.mdx
