blob: b849573b2e4c62ed76e01851162d3d0ad4b4df1c [file] [log] [blame]
Torrentzip is a program that brings zip archives into a ``normal
form'': if the contained files (and their names) are identical, the
zip archive will always be the same, byte-wise. Below is the
definition fo the Torrentzip normal form.
* order of files in archive
In ascending order, as determined by strcasecmp(3).
XXX: How does it deal with file names differing in case only?
* compression used
Deflate at best compression level (Z_BEST_COMPRESSION).
XXX: -MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY (from zip.h)
* fields in local/central directory
version made by 0
version needed to extract 20
general purpose flag 2 (maximum compression)
compression method 8 (Deflated)
last mod file time XXX (23:32 GMT+1)
last mod file date XXX (1996/12/24)
extra fields none
file comment none
disk number start 0
internal file attributes 0
external file attributes 0
* archive comment:
The archive comment contains a signature and a crc32 checksum of the
central directory (including start and end markers (XXX?)). This is
used to detect wether a torrentziped archive was modified by a
non-torrentzip aware program.
TORRENTZIPPED-XXXXXXXX where XXXXXXX is the crc32 checksum of
central dir in hex.