mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Add the md5 value to the end of each archive. This can then be used for integrity testing instead of crc32. Keep crc in new archives to maintain compatibility with version 0.5 files. Use md5 integrity testing on decompression when available in preference, and disable calculation of crc32. Display the choice of integrity testing in verbose output and when -i is used. Display the md5 and crc values when max verbosity, file info, or display hash is enabled. Store a new flag in the magic header to show that the md5 value is stored at the end of the file. Update the magic header information document.
69 lines
1.3 KiB
Plaintext
69 lines
1.3 KiB
Plaintext
lrzip-0.50+ file header format
|
|
November 2010
|
|
Con Kolivas
|
|
|
|
Byte Content
|
|
0-3 LRZI
|
|
4 LRZIP Major Version Number
|
|
5 LRZIP Minor Version Number
|
|
6-14 Source File Size
|
|
16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
|
|
21 Flag that md5sum hash is stored at the end of the archive
|
|
22 not used
|
|
23-48 Stream 1 header data
|
|
49-74 Stream 2 header data
|
|
|
|
Block Data:
|
|
Byte:
|
|
0 Compressed data type
|
|
1-8 Compressed data length
|
|
9-16 Uncompressed data length
|
|
17-24 Next block head
|
|
25 Data offsets byte width
|
|
26+ Data
|
|
|
|
End:
|
|
0-1 crc data
|
|
|
|
lrzip-0.40+ file header format
|
|
November 2009
|
|
Con Kolivas
|
|
|
|
Byte Content
|
|
0-3 LRZI
|
|
4 LRZIP Major Version Number
|
|
5 LRZIP Minor Version Number
|
|
6-14 Source File Size
|
|
16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
|
|
21-22 not used
|
|
23-48 Stream 1 header data
|
|
49-74 Stream 2 header data
|
|
|
|
Block Data:
|
|
Byte:
|
|
0 Compressed data type
|
|
1-8 Compressed data length
|
|
9-16 Uncompressed data length
|
|
17-24 Next block head
|
|
25+ Data
|
|
|
|
End:
|
|
0-1 crc data
|
|
|
|
|
|
lrzip-0.24+ file header format
|
|
January 2009
|
|
Peter Hyman, pete@peterhyman.com
|
|
|
|
Byte Content
|
|
0-3 LRZI
|
|
4 LRZIP Major Version Number
|
|
5 LRZIP Minor Version Number
|
|
6-9 Source File Size (no HAVE_LARGE_FILES)
|
|
6-14 Source File Size
|
|
16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
|
|
21-22 not used
|
|
23-36 Stream 1 header data
|
|
37-50 Stream 2 header data
|
|
51 Compressed data type
|