"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CPP/7zip/UI/Common/HashCalc.cpp" between
p7zip_15.14.1_src_all.tar.gz and p7zip_16.02_src_all.tar.gz

About: p7zip is a command-line file archiver with a high compression ratio (a port of the Windows program 7za.exe).

HashCalc.cpp  (p7zip_15.14.1_src_all):HashCalc.cpp  (p7zip_16.02_src_all)
skipping to change at line 104 skipping to change at line 104
if (scp) if (scp)
RINOK(m.SetCoderProps(scp, NULL)); RINOK(m.SetCoderProps(scp, NULL));
} }
UInt32 digestSize = hasher->GetDigestSize(); UInt32 digestSize = hasher->GetDigestSize();
if (digestSize > k_HashCalc_DigestSize_Max) if (digestSize > k_HashCalc_DigestSize_Max)
return E_NOTIMPL; return E_NOTIMPL;
CHasherState &h = Hashers.AddNew(); CHasherState &h = Hashers.AddNew();
h.Hasher = hasher; h.Hasher = hasher;
h.Name = name; h.Name = name;
h.DigestSize = digestSize; h.DigestSize = digestSize;
for (unsigned i = 0; i < k_HashCalc_NumGroups; i++) for (unsigned k = 0; k < k_HashCalc_NumGroups; k++)
memset(h.Digests[i], 0, digestSize); memset(h.Digests[k], 0, digestSize);
} }
return S_OK; return S_OK;
} }
void CHashBundle::InitForNewFile() void CHashBundle::InitForNewFile()
{ {
CurSize = 0; CurSize = 0;
FOR_VECTOR (i, Hashers) FOR_VECTOR (i, Hashers)
{ {
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS