Check that HMAC(key, msg) == digest. This test uses the `hmac_new()` method to create HMAC objects.
(
self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
)
| 275 | ) |
| 276 | |
| 277 | def assert_hmac_new( |
| 278 | self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size |
| 279 | ): |
| 280 | """Check that HMAC(key, msg) == digest. |
| 281 | |
| 282 | This test uses the `hmac_new()` method to create HMAC objects. |
| 283 | """ |
| 284 | self.check_hmac_new( |
| 285 | key, msg, hexdigest, hashname, digest_size, block_size, |
| 286 | hmac_new_func=self.hmac_new, |
| 287 | hmac_new_kwds={'digestmod': digestmod}, |
| 288 | ) |
| 289 | |
| 290 | def assert_hmac_new_by_name( |
| 291 | self, key, msg, hexdigest, hashname, digest_size, block_size |
no test coverage detected