class final Core · pdftoolkit/pdf 0.12.4

PDF\Specification\Iso32000_2\Dictionary\CryptFilterDictionaryTable25\CFMEntry
ISO 32000-2:2020 EC3, table 25, /CFM.

Lire la déclaration source ↗

Héritage et contrats

Parent : PDF\Specification\SchemaEntry

Définition ISO 32000-2:2020 EC3

Tableau 25 · Entries common to all crypt filter dictionaries
§7.6.6 · page PDF 106

Original PDF au commit documenté ↗ · Métadonnées de la source au commit documenté ↗ · Errata publics ↗

Original conservé dans le dépôt du core. Inventaire des tableaux et contrôles sémantiques restent distincts.

Extrait normatif original en anglais.

/CFM name

(Optional) The method used, if any, by the PDF reader to decrypt data. The following values shall be supported: None The application shall not decrypt data but shall direct the input stream to the security handler for decryption. V2 (Deprecated in PDF 2.0) The application shall ask the security handler for the file encryption key and shall implicitly decrypt data with 7.6.3.2, "Algorithm 1: Encryption of data using the RC4 or AES algorithms", using the RC4 algorithm. AESV2 (PDF 1.6; deprecated in PDF 2.0) The application shall ask the security handler for the file encryption key and shall implicitly decrypt data with 7.6.3.2, "Algorithm 1: Encryption of data using the RC4 or AES algorithms", using the AES algorithm in Cipher Block Chaining (CBC) mode with a 16-byte block size and an initialization vector that shall be randomly generated and placed as the first 16 bytes in the stream or string. The key size (Length) shall be 128 bits. AESV3 (PDF 2.0) The application shall ask the security handler for the file encryption key and shall implicitly decrypt data with 7.6.3.3, "Algorithm 1.A: Encryption of data using the AES algorithms", using the AES-256 algorithm in Cipher Block Chaining (CBC) with padding mode with a 16-byte block size and an initialization vector that is randomly generated and placed as the first 16 bytes in the stream or string. The key size (Length) shall be 256 bits. When the value is V2, AESV2 or AESV3, the application may ask once for this file encryption key and cache the key for subsequent use for streams that use the same crypt filter. Therefore, there shall be a one-to- one relationship between a crypt filter name and the corresponding file encryption key. Only the values listed here shall be supported. Applications that encounter other values shall report that the file is encrypted with an unsupported algorithm. Default value: None.

Périmètre et limites PDF 2.0.

Construction

__construct()

Déclarée par PDF\Specification\Iso32000_2\Dictionary\CryptFilterDictionaryTable25\CFMEntry · Voir le code ↗

Méthodes héritées

3 méthodes des parents et contrats

definition()

public function definition(): PDF\Specification\EntryDefinition

Déclarée par PDF\Specification\SchemaEntry · Voir le code ↗

key()

public function key(): PDF\Syntax\Object\NameType

Déclarée par PDF\Syntax\Object\DictionaryObject\Entry · Voir le code ↗

value()

public function value(): PDF\Syntax\FileStructure\BasicType

Déclarée par PDF\Syntax\Object\DictionaryObject\Entry · Voir le code ↗

Propriétés

Constantes