Deszyfracja została skończona i działa poprawnie
This commit is contained in:
parent
c234825ac5
commit
55c273eace
8 changed files with 104 additions and 20 deletions
|
|
@ -59,6 +59,10 @@ bool ExtractCargo::Extract(const std::string& cFile)
|
|||
return false;
|
||||
}
|
||||
|
||||
// Wczytaj klucz deszyfruj¹cy
|
||||
std::filesystem::path kdir = cargoFileName.stem();
|
||||
eman.loadKey(kdir.string());
|
||||
|
||||
//Otwieranie kontenera
|
||||
cargoFile.open(cargoFileName, std::ios::binary);
|
||||
|
||||
|
|
@ -170,7 +174,7 @@ void ExtractCargo::ExtractingFilesFromCargo()
|
|||
|
||||
cargoFile.read(buffor.data(), fh.size);
|
||||
|
||||
std::vector<char> rawBuffor = fh.isZip ? cm.decompress(buffor) : buffor;
|
||||
std::vector<char> rawBuffor = fh.isZip ? cm.decompress(buffor) : eman.decrypt(buffor);
|
||||
|
||||
if (!HashValid(rawBuffor, fh.crc))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue