| 874 | |
| 875 | |
| 876 | void CKnownFile::CreateHashFromFile(CFileAutoClose& file, uint64 offset, uint32 Length, CMD4Hash* Output, CAICHHashTree* pShaHashOut) |
| 877 | { |
| 878 | wxCHECK_RET(Length, "No input to hash from in CreateHashFromFile"); |
| 879 | |
| 880 | CFileArea area; |
| 881 | area.ReadAt(file, offset, Length); |
| 882 | |
| 883 | CreateHashFromInput(area.GetBuffer(), Length, Output, pShaHashOut); |
| 884 | area.CheckError(); |
| 885 | } |
| 886 | |
| 887 | |
| 888 | void CKnownFile::CreateHashFromInput(const uint8_t* input, uint32 Length, CMD4Hash* Output, CAICHHashTree* pShaHashOut ) |
no test coverage detected