2011-03-11 12:34:26 +01:00
|
|
|
lrzip-0.6x file format
|
|
|
|
|
March 2011
|
|
|
|
|
Con Kolivas
|
|
|
|
|
|
|
|
|
|
Byte Content
|
2011-03-18 07:32:47 +01:00
|
|
|
0-23 Magic
|
2011-03-11 12:34:26 +01:00
|
|
|
---
|
2011-03-18 13:18:36 +01:00
|
|
|
24+ Rzip Chunk Data (RCD)
|
|
|
|
|
RCD+ Data blocks
|
2011-03-11 12:34:26 +01:00
|
|
|
--- repeat
|
|
|
|
|
(end-MD5_DIGEST_SIZE)->(end) md5 hash
|
|
|
|
|
|
|
|
|
|
Magic data:
|
|
|
|
|
0->3 LRZI
|
|
|
|
|
4 LRZIP Major Version Number
|
|
|
|
|
5 LRZIP Minor Version Number
|
2011-03-18 07:32:47 +01:00
|
|
|
6->14 Source File Size or 0 if unknown, or salt in encrypted file
|
2011-03-11 12:34:26 +01:00
|
|
|
16->20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
|
2011-03-18 07:32:47 +01:00
|
|
|
21 1 = md5sum hash is stored at the end of the archive
|
|
|
|
|
22 1 = data is encrypted with sha512/aes128
|
|
|
|
|
23 Unused
|
|
|
|
|
|
|
|
|
|
Encrypted salt (bytes 6->14 in magic if encrypted):
|
|
|
|
|
0->1 Encoded number of loops to hash password
|
|
|
|
|
2->7 Random data
|
2011-03-20 05:55:09 +01:00
|
|
|
(RCD0 is set to 8 bytes always on encrypted files)
|
2011-03-11 12:34:26 +01:00
|
|
|
|
2011-03-20 05:55:09 +01:00
|
|
|
Rzip Chunk Data:
|
2011-03-18 13:18:36 +01:00
|
|
|
0 Data offsets byte width (meaning length is < (2 * 8)^RCD0)
|
|
|
|
|
1 Flag that there is no chunk beyond this
|
2011-03-22 21:59:04 +01:00
|
|
|
(RCD0 bytes) Chunk decompressed size (not stored in encrypted file)
|
2011-03-18 13:18:36 +01:00
|
|
|
XX Stream 0 header data
|
|
|
|
|
XX Stream 1 header data
|
2011-03-11 12:34:26 +01:00
|
|
|
|
2011-03-20 05:55:09 +01:00
|
|
|
Stream Header Data:
|
2011-03-11 12:34:26 +01:00
|
|
|
Byte:
|
|
|
|
|
0 Compressed data type
|
2011-03-18 13:18:36 +01:00
|
|
|
(RCD0 bytes) Compressed data length
|
|
|
|
|
(RCD0 bytes) Uncompressed data length
|
|
|
|
|
(RCD0 bytes) Next block head
|
2011-03-11 12:34:26 +01:00
|
|
|
|
|
|
|
|
Data blocks:
|
|
|
|
|
0->(end-2) data
|
|
|
|
|
(end-1)->end crc data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lrzip-0.5x file format
|
2011-03-11 12:17:26 +01:00
|
|
|
March 2011
|
2010-11-01 05:27:35 +01:00
|
|
|
Con Kolivas
|
|
|
|
|
|
|
|
|
|
Byte Content
|
2011-03-18 13:18:36 +01:00
|
|
|
0->23 Magic
|
2011-03-11 12:17:26 +01:00
|
|
|
--
|
2011-03-18 13:18:36 +01:00
|
|
|
24->74 Rzip chunk data
|
2011-03-11 12:17:26 +01:00
|
|
|
75+ Data blocks
|
|
|
|
|
-- repeat
|
|
|
|
|
(end-MD5_DIGEST_SIZE)->(end) md5 hash
|
|
|
|
|
|
|
|
|
|
Magic data:
|
|
|
|
|
0->3 LRZI
|
2010-11-01 05:27:35 +01:00
|
|
|
4 LRZIP Major Version Number
|
|
|
|
|
5 LRZIP Minor Version Number
|
2011-03-11 12:17:26 +01:00
|
|
|
6->14 Source File Size
|
|
|
|
|
16->20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
|
2011-02-20 08:01:19 +01:00
|
|
|
21 Flag that md5sum hash is stored at the end of the archive
|
2011-03-18 13:18:36 +01:00
|
|
|
22-23 not used
|
2010-11-01 05:27:35 +01:00
|
|
|
|
2011-03-11 12:17:26 +01:00
|
|
|
Rzip chunk data:
|
|
|
|
|
0 Data offsets byte width
|
|
|
|
|
1-25 Stream 0 header data
|
|
|
|
|
26-50 Stream 1 header data
|
|
|
|
|
|
|
|
|
|
Stream Header Data:
|
2010-11-01 05:27:35 +01:00
|
|
|
Byte:
|
|
|
|
|
0 Compressed data type
|
|
|
|
|
1-8 Compressed data length
|
|
|
|
|
9-16 Uncompressed data length
|
|
|
|
|
17-24 Next block head
|
|
|
|
|
|
2011-03-11 12:17:26 +01:00
|
|
|
Data blocks:
|
2011-03-11 12:34:26 +01:00
|
|
|
0->(end-2) data
|
|
|
|
|
(end-1)->end crc data
|
2011-03-11 12:17:26 +01:00
|
|
|
|
2010-11-01 05:27:35 +01:00
|
|
|
|
2010-03-29 01:07:08 +02:00
|
|
|
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)
|
2011-03-18 13:18:36 +01:00
|
|
|
21-24 not used
|
|
|
|
|
24-48 Stream 1 header data
|
2010-03-29 01:07:08 +02:00
|
|
|
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)
|
2011-03-18 13:18:36 +01:00
|
|
|
21-23 not used
|
|
|
|
|
24-36 Stream 1 header data
|
2010-03-29 01:07:08 +02:00
|
|
|
37-50 Stream 2 header data
|
|
|
|
|
51 Compressed data type
|