(new_func, key, msg, digestmod)
| 119 | |
| 120 | |
| 121 | def _call_newobj_func(new_func, key, msg, digestmod): |
| 122 | if digestmod is DIGESTMOD_SENTINEL: # to test when digestmod is missing |
| 123 | return new_func(key, msg) # expected to raise |
| 124 | # functions creating HMAC objects take a 'digestmod' keyword argument |
| 125 | return new_func(key, msg, digestmod=digestmod) |
| 126 | |
| 127 | |
| 128 | def _call_digest_func(digest_func, key, msg, digestmod): |
no outgoing calls
no test coverage detected
searching dependent graphs…