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

Method hmac_digest

Lib/test/test_hmac.py:146–148  ·  view source on GitHub ↗

Call the digest() method on a HMAC object obtained by hmac_new().

(self, key, msg=None, digestmod=DIGESTMOD_SENTINEL)

Source from the content-addressed store, hash-verified

144 return _call_newobj_func(self.hmac.HMAC, key, msg, digestmod)
145
146 def hmac_digest(self, key, msg=None, digestmod=DIGESTMOD_SENTINEL):
147 """Call the digest() method on a HMAC object obtained by hmac_new()."""
148 return _call_newobj_func(self.hmac_new, key, msg, digestmod).digest()
149
150
151class ThroughModuleAPIMixin(ModuleMixin, CreatorMixin, DigestMixin):

Callers

nothing calls this directly

Calls 2

_call_newobj_funcFunction · 0.85
digestMethod · 0.45

Tested by

no test coverage detected