Replies: 4 comments 2 replies
-
Trimmed another byte because LC, LP, and PB are always 3, 0, 2. That encodes to 0x5D, or 93 decimal. No need to store a constant. 0-3 LRZI |
Beta Was this translation helpful? Give feedback.
-
Update again to Magic Header. No impact on earlier files. Now zpaq compression data is stored in magic byte 17. If the compression mode is ZPAQ, then byte 17 will be formatted as follows.
Current versions of Examples, (note zpaq block sizes will depend on available ram).
Decodingfrom
Encodingfrom
|
Beta Was this translation helpful? Give feedback.
-
How about this: |
Beta Was this translation helpful? Give feedback.
-
I agree with you, there is quite a bit of redundant code which could be removed :) - in addition, since lrzip-next is still in alpha, (I don't think there should be any compatibility promises made just yet) |
Beta Was this translation helpful? Give feedback.
-
Magic Header Changes
LZMA2 Encoding
By using the LZMA2 encoding for files, it will take only 2 bytes of space instead of 5.
There were two unused bytes between Decompressed File Size and Filter. This was because the space used by Encryption was miscalculated years ago. The Encryption also takes 8 bytes. This is because the Encryption Hash Loops are in fact the first 2 bytes of salt. Only 6 random numbers are attached to the loop bytes/
Reorder Magic Bytes
Allow for more choices for MD5 and Encryption
ENCRYPTION IMPORTANT
HOWEVER this will break all compatibility with encrypted files stored in earlier versions of
lrzip
orlrzip-next
. I'm not sure how many people use encryption anyway.So anyone with earlier archives should save version 0.7 of
lrzip-next
or just git down to the last tag for itComments? Suggestions?
lrzip-0.8x file format
July 2021
get rid of dead space
encryption is only bytes 6-13 since encryption loops are first
two bytes of salt.
Use lzma2 byte encoding for lc,lp,pb and dictionary size 0-40
Dictionary size will be decoded to fit into the old LZMA Properties
control field and encoded prior to writing the Magic Header.
move up fields for md5sum and encoding.
Beta Was this translation helpful? Give feedback.
All reactions