MCPcopy Index your code
hub / github.com/RustPython/RustPython / hmac_new

Method hmac_new

Lib/test/test_hmac.py:93–99  ·  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

91 """Mixin exposing a method creating a HMAC object."""
92
93 def hmac_new(self, key, msg=None, digestmod=DIGESTMOD_SENTINEL):
94 """Create a new HMAC object.
95
96 Implementations should accept arbitrary 'digestmod' as this
97 method can be used to test which exceptions are being raised.
98 """
99 raise NotImplementedError
100
101 def bind_hmac_new(self, digestmod):
102 """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