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

Method hmac_digest

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

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

Callers 8

digestFunction · 0.45
check_openssl_hmacMethod · 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