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

Method hmac_new

Lib/test/test_hmac.py:92–98  ·  view source on GitHub ↗

Create a new HMAC object. Implementations should accept arbitrary 'digestmod' as this method can be used to test which exceptions are being raised.

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

Source from the content-addressed store, hash-verified

90 """Mixin exposing a method creating a HMAC object."""
91
92 def hmac_new(self, key, msg=None, digestmod=DIGESTMOD_SENTINEL):
93 """Create a new HMAC object.
94
95 Implementations should accept arbitrary 'digestmod' as this
96 method can be used to test which exceptions are being raised.
97 """
98 raise NotImplementedError
99
100 def bind_hmac_new(self, digestmod):
101 """Return a specialization of hmac_new() with a bound digestmod."""

Callers 10

_init_openssl_hmacMethod · 0.45
hmac_new_by_nameMethod · 0.45
hmac_new_by_nameMethod · 0.45
test_methodsMethod · 0.45
test_propertiesMethod · 0.45
test_copyMethod · 0.45
test_reprMethod · 0.45
test_reprMethod · 0.45
test_reprMethod · 0.45
HMACMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected