Lines Matching refs:calc
92 HashCalculator calc; in RawHashOfBytes() local
93 TEST_AND_RETURN_FALSE(calc.Update(data, length)); in RawHashOfBytes()
94 TEST_AND_RETURN_FALSE(calc.Finalize()); in RawHashOfBytes()
95 *out_hash = calc.raw_hash(); in RawHashOfBytes()
106 HashCalculator calc; in RawHashOfFile() local
107 off_t res = calc.UpdateFile(name, length); in RawHashOfFile()
111 if (!calc.Finalize()) { in RawHashOfFile()
114 *out_hash = calc.raw_hash(); in RawHashOfFile()
119 HashCalculator calc; in HashOfBytes() local
120 calc.Update(data, length); in HashOfBytes()
121 calc.Finalize(); in HashOfBytes()
122 return calc.hash(); in HashOfBytes()