PprFormatReader - read encrypted files

This commit is contained in:
ElenaSubbotina
2017-06-23 19:50:43 +03:00
parent 867c09c85d
commit ebdfcbd7ee
22 changed files with 706 additions and 580 deletions

View File

@ -713,10 +713,11 @@ bool ECMACryptFile::DecryptOfficeFile(std::wstring file_name_inp, std::wstring f
unsigned char* data_out = NULL;
int readTrue = pStream->read(data, lengthRead);
int readData = readTrue - 8;
lengthData = *((_UINT64*)data);
decryptor.Decrypt(data, readTrue, data_out);//todoo сделать покусочное чтение декриптование
decryptor.Decrypt(data + 8, readData, data_out);//todoo сделать покусочное чтение декриптование
if (data_out)
{