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)
| 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.""" |
no outgoing calls
no test coverage detected