MCPcopy Index your code
hub / github.com/python/cpython / test_blake2b

Method test_blake2b

Lib/test/test_hashlib.py:916–922  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

914
915 @requires_blake2
916 def test_blake2b(self):
917 self.check_blake2(hashlib.blake2b, 16, 16, 64, 64, (1<<64)-1)
918 b2b_md_len = [20, 32, 48, 64]
919 b2b_in_len = [0, 3, 128, 129, 255, 1024]
920 self.assertEqual(
921 self.blake2_rfc7693(hashlib.blake2b, b2b_md_len, b2b_in_len),
922 "c23a7800d98123bd10f506c61e29da5603d763b8bbad2e737f5e765a7bccd475")
923
924 @requires_blake2
925 def test_case_blake2b_0(self):

Callers

nothing calls this directly

Calls 3

check_blake2Method · 0.95
blake2_rfc7693Method · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected