User Activity

  • Posted a comment on discussion Help on 7-Zip

    Thanks for the reply! CRC_GET_DIGEST does the trick! :) I was calculating CRC32 this way: UInt32 crc = CRC_INIT_VAL; Byte buffer[1024]; for (;;) { const size_t read = fread_s(buffer, sizeof(buffer), 1, sizeof(buffer), file); crc = CrcUpdate(crc, buffer, read); if (read < sizeof(buffer)) break; } fclose(file); And the calculated CRC32 matches the one from 7z-archive only when the former is 'normalized' with CRC_GET_DIGEST. Everything works now as expected :)

  • Posted a comment on discussion Help on 7-Zip

    Thanks for the hint. I've managed to get checksums from the archive in HRESULT OpenResult(const CCodecs* codecs, const CArchiveLink& arcLink, const wchar_t* name, HRESULT result). Are they calculated as CRC32 or is this another sort of checksum? I tried to use CrcUpdate to calculate CRC32 for the extracted files, and the results do not match.

  • Modified a comment on discussion Help on 7-Zip

    Is it possible somehow with LZMA SDK to get checksums of files in a 7z-archive while/after/before extracting them? I'm using Extract for processing 7z-archives, and I would like to double check the extracted files by comparing their checksums (on disk) against the checksum in the archive. There is IHashCalc which can be passed into Extract function, and when CHashBundle is invoked through this interface it can calculate CRC32 hashes. I guese, these hashes are for extracted files while they are being...

  • Modified a comment on discussion Help on 7-Zip

    Is it possible somehow with LZMA SDK to get checksums of files in a 7z-archive while/after/before extracting them? I'm using Extract for processing 7z-archives, and I would like to double check the extracted files by comparing their checksums (on disk) against the checksum in the archive. There is IHashCalc which can be passed into Extract function, and when CHashBundle is invoked through this interface it can calculate CRC32 hashes. I guese, these hashes are for extracted files which are saved to...

  • Posted a comment on discussion Help on 7-Zip

    Is it possible somehow with LZMA SDK to get checksums of files in a 7z-archive while/after/before extracting them? I'm using Extract for processing 7z-archives, and I would like to double check the extracted files by comparing their checksums (on disk) against the checksum in the archive. There is IHashCalc which can be passed into Extract function, and when CHashBundle is invoked this way it can calculate CRC32 hashes. I guese, these hashes are for extracted files which are saved to disk. It can...

  • Posted a comment on discussion Help on 7-Zip

    Kevin, take a look at https://www.7-zip.org/download.html : there are Windows and Linux versions there + older MacOS version. Full features (GUI + console) are available for Windows only, and for Linix/MacOS there is only a console version.

  • Modified a comment on discussion Open Discussion on 7-Zip

    Just a hint: the sample CPP\7zip\Bundles\SFXSetup seems to be handling similar/same task with CExtractCallbackImp::GetStream.

  • Posted a comment on discussion Open Discussion on 7-Zip

    Just a hint: the sample CPP\7zip\Bundles\SFXSetup seems to handling similar/same task with CExtractCallbackImp::GetStream.

View All

Personal Data

Username:
ka5
Joined:
2002-07-03 14:58:23
Location:
Russia / MSK
Gender:
Male
Web Site:
  1. https://it-knowledge-base.blogspot.com

Projects

  • No projects to display.