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