Lines Matching defs:hashalg
152 bool CAICHHashTree::ReCalculateHash(CAICHHashAlgo* hashalg, bool bDontReplace)
155 if ( !m_pLeftTree->ReCalculateHash(hashalg, bDontReplace) || !m_pRightTree->ReCalculateHash(hashalg, bDontReplace) ) {
162 hashalg->Reset();
163 hashalg->Add(m_pLeftTree->m_Hash.GetRawHash(), HASHSIZE);
164 hashalg->Add(m_pRightTree->m_Hash.GetRawHash(), HASHSIZE);
165 hashalg->Finish(m_Hash);
179 bool CAICHHashTree::VerifyHashTree(CAICHHashAlgo* hashalg, bool bDeleteBadTrees)
199 m_pLeftTree->ReCalculateHash(hashalg, true);
202 m_pRightTree->ReCalculateHash(hashalg, true);
224 hashalg->Reset();
225 hashalg->Add(m_pLeftTree->m_Hash.GetRawHash(), HASHSIZE);
226 hashalg->Add(m_pRightTree->m_Hash.GetRawHash(), HASHSIZE);
227 hashalg->Finish(CmpHash);
242 return m_pLeftTree->VerifyHashTree(hashalg, bDeleteBadTrees) && m_pRightTree->VerifyHashTree(hashalg, bDeleteBadTrees);
810 CAICHHashAlgo* hashalg = GetNewHashAlgo();
811 bool bResult = m_pHashTree.ReCalculateHash(hashalg, bDontReplace);
812 delete hashalg;
818 CAICHHashAlgo* hashalg = GetNewHashAlgo();
819 bool bResult = m_pHashTree.VerifyHashTree(hashalg, bDeleteBadTrees);
820 delete hashalg;