MCPcopy Index your code
hub / github.com/RustPython/RustPython / hmactest

Method hmactest

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assert_hmacMethod · 0.80

Tested by

no test coverage detected