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

Method hmactest

Lib/test/test_hmac.py:498–507  ·  view source on GitHub ↗
(key, msg, hexdigests)

Source from the content-addressed store, hash-verified

496
497 def _test_sha2_rfc4231(self, hashfunc, hashname, digest_size, block_size):
498 def hmactest(key, msg, hexdigests):
499 hexdigest = hexdigests[hashname]
500
501 self.assert_hmac(
502 key, msg, hexdigest,
503 hashfunc=hashfunc,
504 hashname=hashname,
505 digest_size=digest_size,
506 block_size=block_size
507 )
508
509 # 4.2. Test Case 1
510 hmactest(key=b'\x0b' * 20,

Callers

nothing calls this directly

Calls 1

assert_hmacMethod · 0.80

Tested by

no test coverage detected