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

Method assert_hmac_hexdigest

Lib/test/test_hmac.py:328–336  ·  view source on GitHub ↗

Check a HMAC digest computed by hmac_digest().

(
        self, key, msg, hexdigest, digestmod, digest_size,
    )

Source from the content-addressed store, hash-verified

326 hmac_new_feed(None)
327
328 def assert_hmac_hexdigest(
329 self, key, msg, hexdigest, digestmod, digest_size,
330 ):
331 """Check a HMAC digest computed by hmac_digest()."""
332 self.check_hmac_hexdigest(
333 key, msg, hexdigest, digest_size,
334 hmac_digest_func=self.hmac_digest,
335 hmac_digest_kwds={'digestmod': digestmod},
336 )
337
338 def assert_hmac_hexdigest_by_name(
339 self, key, msg, hexdigest, hashname, digest_size

Callers 1

assert_hmacMethod · 0.95

Calls 1

check_hmac_hexdigestMethod · 0.95

Tested by

no test coverage detected