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