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

Method hmac_digest

Lib/test/test_hmac.py:109–115  ·  view source on GitHub ↗

Compute a HMAC digest. 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

107 """Mixin exposing a method computing a HMAC digest."""
108
109 def hmac_digest(self, key, msg=None, digestmod=DIGESTMOD_SENTINEL):
110 """Compute a HMAC digest.
111
112 Implementations should accept arbitrary 'digestmod' as this
113 method can be used to test which exceptions are being raised.
114 """
115 raise NotImplementedError
116
117 def bind_hmac_digest(self, digestmod):
118 """Return a specialization of hmac_digest() with a bound digestmod."""

Callers 7

digestFunction · 0.45
hmac_digest_by_nameMethod · 0.45
hmac_digest_by_nameMethod · 0.45
test_digestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected