CanonicalizationMethod Element The structure of a CanonicalizationMethod element is shown in the following diagram: diagram namespace http://www.w3.org/2000/09/xmldsig# attributes annotation Since XML allows equivalent content to be represented differently, a producer should apply a canonicalization transform to the SignedInfo element when it generates it, and a consumer should apply the canonicalization transform to the SignedInfo element when validating it. [S6.3] [Note: Performing a canonicalization transform ensures that SignedInfo content can be validated even if the content has been regenerated using, for example, different entity structures, attribute ordering, or character encoding. Producers and consumers should also use canonicalization transforms for references to parts that hold XML documents. These transforms are defined using the Transformelement. end note]
Version needed to extract (see Table C–3 for details) Yes (partially, see Table Yes (1.0, 1.1, 2.0, 4.5) Yes General purpose bit flag Yes (partially, see Table Yes (partially, see Table C–5) Yes (partially, see Table C–5) Compression method Yes (partially, see Table Yes (partially, see Table C–4) Yes (partially, see Table C–4) Last mod file time (Pass through, no interpretation) Yes Yes Yes Last mod file date (Pass through, in interpretation) Yes Yes Yes Crc-32 Yes Yes Yes Compressed size Yes Yes Yes Uncompressed size Yes Yes Yes File name length Yes Yes Yes Extra field length Yes Yes Yes File comment length Yes Yes (always set to 0) Yes Disk number start Yes (partial — no multi disk archives) Yes (always 1 disk) Yes (partial — no multi disk archives) Internal file attributes Yes Yes Yes
External file attributes (Pass through, no interpretation) Yes Yes (MS DOS default Yes Relative offset of local header Yes Yes Yes File name (variable size) Yes Yes Yes Extra field (variable size) Yes (partially, see Table Yes (partially, see Table C–6) Yes (partially, see Table C–6) File comment (variable size) Yes Yes (always set to empty) Yes Zip64 end of central directory V1 (from spec version 4.5, only used when needed) Zip64 end of central directory signature Yes Yes Yes Size of zip64 end of central directory Yes Yes Yes Version made by: high byte (Pass through, no interpretation) Yes Yes (0 = MS-DOS is default publishing value) Yes Version made by: low byte Yes Yes (always 4.5 or above) Yes Version needed to extract (see Table C–3 for details) Yes (4.5) Yes (4.5) Yes (4.5) Number of this disk Yes (partial — no multi disk archives) Yes (always 1 disk) Yes (partial — no multi disk archives)
Number of the disk with the start of the central directory Yes (partial — no multi disk archives) Yes (always 1 disk) Yes (partial — no multi disk archives) Total number of entries in the central directory on this disk Yes Yes Yes Total number of entries in the central directory Yes Yes Yes Size of the central directory Yes Yes Yes Offset of start of central directory with respect to the starting disk number Yes Yes Yes Zip64 extensible data sector Yes No Yes Zip64 end of central directory locator (only used when needed) Zip64 end of central dir locator signature Yes Yes Yes Number of the disk with the start of the zip64 end of central directory Yes (partial — no disk archives) Yes (always 1 disk) Yes (partial — no multi disk archives) Relative offset of the end of central directory record Yes Yes Yes
Total number of disks Yes (partial — no multi disk archives) Yes (always 1 disk) Yes (partial — no multi disk archives) End of central directory record End of central dir signature Yes Yes Yes Number of this disk Yes (partial — no multi disk archives) Yes (always 1 disk) Yes (partial — no multi disk archives) Number of the disk with the of the central directory Yes (partial — no multi disk archive) Yes (always 1 disk) Yes (partial — no multi disk archive) Total number of entries in the central directory on this disk Yes Yes Yes Total number of entries in the central directory Yes Yes Yes Size of the central directory Yes Yes Yes Offset of of central directory with respect to the starting disk number Yes Yes Yes ZIP file comment length Yes Yes Yes ZIP file comment Yes No Yes
1, 2 Yes Yes Yes 3 If this bit is set, the fields crc-32, compressed size and uncompressed size are set to zero in the header. The correct values are put in the data descriptor immediately following the compressed data. (PKZIP version 2.04g for DOS only recognizes this bit for method 8 compression, newer versions of PKZIP recognize this bit for any compression method.) Yes Yes Yes 4 Reserved for use with method 8, for enhanced deflating Ignore Bits set to 0 Yes 5 If this bit is set, this indicates that the file is compressed patched data. (Requires PKZIP version 2.70 or greater.) Ignore Bits set to 0 Yes 6 Strong encryption. If this bit is set, you should set the version needed to extract value to at least 50 and you must also set bit 0. If AES encryption is used, the version needed to extract value must be at least 51. Ignore Bits set to 0 Yes 7 Currently unused Ignore Bits set to 0 Yes 8 Currently unused Ignore Bits set to 0 Yes 9 Currently unused Ignore Bits set to 0 Yes 10 Currently unused Ignore Bits set to 0 Yes 11 Currently unused Ignore Bits set to 0 Yes 12 Reserved by PKWARE for enhanced compression Ignore Bits set to 0 Yes
0x0019 PKCS#7 Encryption Recipient Certificate List Ignore No Yes 0x0065 IBM S/390 (Z390), AS/400 (I400) attributes — uncompressed Ignore No Yes 0x0066 Reserved for IBM S/390 (Z390), AS/400 (I400) attributes — compressed Ignore No Yes 0x4690 POSZIP 4690 (reserved) Ignore No Yes Table C–7, “Support for Extra field (variable size), third-party extensions”, specifies the detailed production, consumption, and editing requirements for the Extra field entries reserved by third parties and described in the ZIP Appnote.txt. Table C–7. Support for Extra field (variable size), third-party extensions Field ID Field description Supported on Consumption Supported on Production Pass through on editing 0x07c8 Macintosh Ignore No Yes 0x2605 ZipIt Macintosh Ignore No Yes 0x2705 ZipIt Macintosh 1.3.5+ Ignore No Yes 0x2805 ZipIt Macintosh 1.3.5+ Ignore No Yes 0x334d Info-ZIP Macintosh Ignore No Yes 0x4341 Acorn/SparkFS Ignore No Yes 0x4453 Windows NT security descriptor (binary ACL) Ignore No Yes 0x4704 VM/CMS Ignore No Yes 0x470f MVS Ignore No Yes 0x4b46 FWKCS MD5 (see below) Ignore No Yes 0x4c41 OS/2 access control list (text ACL) Ignore No Yes 0x4d49 Info-ZIP OpenVMS Ignore No Yes 0x4f4c original location extra field Ignore No Yes 0x5356 AOS/VS (ACL) Ignore No Yes
O2.2 Optional. The package implementer might provide a physical mapping for a growth hint that might be specified by a producer. 9.1.1 × O2.3 Package implementers use the common mapping solutions defined in this Open Packaging specification. 9.1 × O2.4 Package producers can use pre-defined Default elements to reduce the number of Override elements on a part, but are not required to do so. ×A O2.5 The package implementer can define Default content type mappings even though no parts use them. ×A O2.6 The package implementer might create a physical package containing interleaved parts and non-interleaved parts. 9.1.4 ×
M4.2 The format designer shall not specify and the format producer shall not create Core Properties that use the Markup Compatibility namespace as defined in Annex F, “Standard Namespaces and Content Types”. A format consumer shall consider the use of the Markup Compatibility namespace to be an error. × × × M4.3 Producers shall not create a document element that contains refinements to the Dublin Core elements, except for the two specified in the schema: <dcterms:created> and <dcterms:modified> Consumers shall consider a document element that violates this constraint to be an error. 10.4 × × M4.4 Producers shall not create a document element that contains the xml:lang attribute. Consumers shall consider a document element that violates this constraint to be an error. 10.4 × × M4.5 Producers shall not create a document element that contains the xsi:type attribute, except for a <dcterms:created> or <dcterms:modified> element where the xsi:type attribute shall be present and shall hold the value dcterms:W3CDTF, where dcterms is the namespace prefix of the Dublin Core namespace. Consumers shall consider a document element that violates this constraint to be an error. 10.4 × × Thumbnail The requirements in Table H–10 and Table H–11 are only relevant if using the thumbnail feature. Table H–10. Thumbnail conformance requirements
M6.4 If the certificate is represented as a separate part within the package, the producer shall target that certificate from the appropriate Digital Signature XML Signature part by a Digital Signature Certificate relationship as specified in Annex F, “Standard Namespaces and Content Types” and the consumer shall use that relationship to locate the certificate. 12.2.3 × × M6.5 The producer shall create Reference elements within a SignedInfo element that reference elements within the same Signature element. The consumer shall consider Reference elements within a SignedInfo element that reference any resources outside the same Signature element to be in error. 12.2.4.1 × × M6.6 The producer shall not create a reference to a packagespecific Object element that contains a transform other than a canonicalization transform. The consumer shall consider a reference to a packagespecific Object element that contains a transform other than a canonical transform to be an error. 12.2.4.1 × ×
This annex is informative. access local 85 networked 85 access style 3, 22, 86 authority 66 base URI 3 behavior 3 implementation-defined 3 unspecified 3 communication style 3, 22, 87 consumer 3, 85 content type 3, 13 content 1 content types stream 3, 23 core properties 1 device 3, 85 digital signature 1 direct access consumption 86 format consumer 3 format designer 3 format producer 3 fragment 66 growth hint 3 IEC See International Electrotechnical Commission interleaved ordering 4 International Electrotechnical Commission 8 layout style 4, 22, 86 local access 4 logical item name 4, 28 networked access 4 ordering interleaved 22, 87 simple 22, 86 pack URI 4, 11 package 1, 4, 11 package implementer 4 package model 1, 4 package relationship 4, 16 part 1, 4, 11 part name 4, 11 path 66 pchar 66 pct-encoded characters 66 physical mapping 1 physical model 4, 22 physical package format 4, 22 piece 4, 30 pipe 5, 22, 85 producer 5, 85 query 66 random access 5, 87 relationship 5, 16 relationship part 16 relationships part 5 relative reference 3 reserved character 66 resource 66 scheme 66 segment 66 sequential delivery 5, 87 signature policy 5 simple ordering 5 simultaneous creation and consumption 5, 86 stream 5, 11 streaming consumption 5, 86 streaming creation 5, 86 sub-delims 66 thumbnail 1, 5, 41, 108 unreserved characters 66 well-known part 5 XIP archive 31 ZIP archive 5 ZIP item 5, 31 End of informative text.