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

Method hmac_digest_by_name

Lib/test/test_hmac.py:399–402  ·  view source on GitHub ↗
(self, key, msg=None, *, hashname)

Source from the content-addressed store, hash-verified

397 return self.hmac_new(key, msg, digestmod=openssl_func)
398
399 def hmac_digest_by_name(self, key, msg=None, *, hashname):
400 self.assertIsInstance(hashname, str)
401 openssl_func = getattr(_hashlib, f"openssl_{hashname}")
402 return self.hmac_digest(key, msg, digestmod=openssl_func)
403
404
405class BuiltinAssertersMixin(ThroughBuiltinAPIMixin, AssertersMixin):

Callers

nothing calls this directly

Calls 2

assertIsInstanceMethod · 0.80
hmac_digestMethod · 0.45

Tested by

no test coverage detected