/usr/share/doc/lrzip/magic.header.txt is in lrzip 0.631-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | lrzip-0.6x file format
March 2011
Con Kolivas
Byte Content
0-23 Magic
---
24+ Rzip Chunk Data (RCD)
RCD+ Data blocks
--- repeat
(end-MD5_DIGEST_SIZE)->(end) md5 hash
Magic data:
0->3 LRZI
4 LRZIP Major Version Number
5 LRZIP Minor Version Number
6->14 Source File Size or 0 if unknown, or salt in encrypted file
16->20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
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
(RCD0 is set to 8 bytes always on encrypted files)
Rzip Chunk Data:
0 Data offsets byte width (meaning length is < (2 * 8)^RCD0)
1 Flag that there is no chunk beyond this
(RCD0 bytes) Chunk decompressed size (not stored in encrypted file)
XX Stream 0 header data
XX Stream 1 header data
Stream Header Data:
Byte:
0 Compressed data type
(RCD0 bytes) Compressed data length
(RCD0 bytes) Uncompressed data length
(RCD0 bytes) Next block head
Data blocks:
0->(end-2) data
(end-1)->end crc data
lrzip-0.5x file format
March 2011
Con Kolivas
Byte Content
0->23 Magic
--
24->74 Rzip chunk data
75+ Data blocks
-- repeat
(end-MD5_DIGEST_SIZE)->(end) md5 hash
Magic data:
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-23 not used
Rzip chunk data:
0 Data offsets byte width
1-25 Stream 0 header data
26-50 Stream 1 header data
Stream Header Data:
Byte:
0 Compressed data type
1-8 Compressed data length
9-16 Uncompressed data length
17-24 Next block head
Data blocks:
0->(end-2) data
(end-1)->end 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-24 not used
24-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-23 not used
24-36 Stream 1 header data
37-50 Stream 2 header data
51 Compressed data type
|