lrz_crypt tweaks courtesy of Serge Belyshev.

This commit is contained in:
Con Kolivas 2011-03-21 20:54:53 +11:00
parent 95f8b9fd90
commit 8c8f5bdd48
6 changed files with 76 additions and 53 deletions

View file

@ -377,7 +377,7 @@ i64 runzip_fd(rzip_control *control, int fd_in, int fd_out, int fd_hist, i64 exp
if (unlikely(read_1g(control, fd_in, md5_stored, MD5_DIGEST_SIZE) != MD5_DIGEST_SIZE))
fatal("Failed to read md5 data in runzip_fd\n");
if (ENCRYPT)
lrz_decrypt(control, md5_stored, MD5_DIGEST_SIZE, control->pass_hash);
lrz_decrypt(control, md5_stored, MD5_DIGEST_SIZE, control->salt_pass);
for (i = 0; i < MD5_DIGEST_SIZE; i++)
if (md5_stored[i] != md5_resblock[i]) {
print_output("MD5 CHECK FAILED.\nStored:");