mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-03-29 17:04:40 +02:00
Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc698c919c | ||
|
|
2de3cd3dbc | ||
|
|
93bb1190f8 |
|
|
@ -14,13 +14,14 @@ 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
|
||||
6->13 Source File Size or 0 if unknown, or salt in encrypted file
|
||||
14->15 Unused
|
||||
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):
|
||||
Encrypted salt (bytes 6->13 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)
|
||||
|
|
@ -60,7 +61,8 @@ Magic data:
|
|||
0->3 LRZI
|
||||
4 LRZIP Major Version Number
|
||||
5 LRZIP Minor Version Number
|
||||
6->14 Source File Size
|
||||
6->13 Source File Size
|
||||
14->15 Unused
|
||||
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
|
||||
|
|
@ -90,7 +92,8 @@ Byte Content
|
|||
0-3 LRZI
|
||||
4 LRZIP Major Version Number
|
||||
5 LRZIP Minor Version Number
|
||||
6-14 Source File Size
|
||||
6-13 Source File Size
|
||||
14->15 Unused
|
||||
16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
|
||||
21-24 not used
|
||||
24-48 Stream 1 header data
|
||||
|
|
@ -117,7 +120,8 @@ Byte Content
|
|||
4 LRZIP Major Version Number
|
||||
5 LRZIP Minor Version Number
|
||||
6-9 Source File Size (no HAVE_LARGE_FILES)
|
||||
6-14 Source File Size
|
||||
6-13 Source File Size
|
||||
14->15 Unused
|
||||
16-20 LZMA Properties Encoded (lc,lp,pb,fb, and dictionary size)
|
||||
21-23 not used
|
||||
24-36 Stream 1 header data
|
||||
|
|
|
|||
1
lrzip.c
1
lrzip.c
|
|
@ -340,6 +340,7 @@ int open_tmpoutfile(rzip_control *control)
|
|||
if (unlikely(!control->outfile))
|
||||
fatal_return(("Failed to allocate outfile name\n"), -1);
|
||||
strcpy(control->outfile, control->tmpdir);
|
||||
print_maxverbose("Writing temporary file to %s\n", control->tmpdir);
|
||||
strcat(control->outfile, "lrzipout.XXXXXX");
|
||||
}
|
||||
|
||||
|
|
|
|||
2
main.c
2
main.c
|
|
@ -69,7 +69,7 @@ static rzip_control base_control, local_control, *control;
|
|||
static void usage(bool compat)
|
||||
{
|
||||
print_output("lrz%s version %s\n", compat ? "" : "ip", PACKAGE_VERSION);
|
||||
print_output("Copyright (C) Con Kolivas 2006-2022\n");
|
||||
print_output("Copyright (C) Con Kolivas 2006-2026\n");
|
||||
print_output("Based on rzip ");
|
||||
print_output("Copyright (C) Andrew Tridgell 1998-2003\n\n");
|
||||
print_output("Usage: lrz%s [options] <file...>\n", compat ? "" : "ip");
|
||||
|
|
|
|||
Loading…
Reference in a new issue