Lines Matching refs:hexdigest
180 c.hexdigest(16)
182 c.hexdigest()
228 self.assertEqual(hexstr(h.digest(16)), h.hexdigest(16))
231 self.assertEqual(hexstr(h.digest()), h.hexdigest())
240 for digest in h.digest, h.hexdigest:
289 def check(self, name, data, hexdigest, shake=False, **kwargs): argument
290 length = len(hexdigest)//2
291 hexdigest = hexdigest.lower()
297 computed = m.hexdigest() if not shake else m.hexdigest(length)
299 computed, hexdigest,
303 computed, len(data), hexdigest))
305 digest = bytes.fromhex(hexdigest)
348 self.assertEqual(len(m.hexdigest(digest_length)),
352 self.assertEqual(len(m.hexdigest()), 2*digest_size)
551 self.assertEqual(constructor().hexdigest(),
552 constructor(key=b'').hexdigest())
624 return outer.hexdigest()
798 self.assertEqual(m.hexdigest(), 'cb1e1a2cbc80be75e19935d621fb9b21')
801 self.assertEqual(m.hexdigest(), 'cfb767f225d58469c5de3632a8803958')
815 expected_hash = hashlib.sha1(data*num_threads).hexdigest()
837 self.assertEqual(expected_hash, hasher.hexdigest())