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

Method hmac_new

Lib/test/test_hmac.py:154–156  ·  view source on GitHub ↗

Create a HMAC object via a module-level function.

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

Source from the content-addressed store, hash-verified

152 """Mixin delegating to <module>.new() and <module>.digest()."""
153
154 def hmac_new(self, key, msg=None, digestmod=DIGESTMOD_SENTINEL):
155 """Create a HMAC object via a module-level function."""
156 return _call_newobj_func(self.hmac.new, key, msg, digestmod)
157
158 def hmac_digest(self, key, msg=None, digestmod=DIGESTMOD_SENTINEL):
159 """One-shot HMAC digest computation."""

Callers

nothing calls this directly

Calls 1

_call_newobj_funcFunction · 0.85

Tested by

no test coverage detected