Common tests executed by all subclasses.
(
self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
)
| 364 | return d |
| 365 | |
| 366 | def assert_hmac_common_cases( |
| 367 | self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size |
| 368 | ): |
| 369 | """Common tests executed by all subclasses.""" |
| 370 | h1 = self.hmac_new_by_name(key, hashname=hashname) |
| 371 | h2 = h1.copy() |
| 372 | h2.update(b"test update should not affect original") |
| 373 | h1.update(msg) |
| 374 | self.check_object(h1, hexdigest, hashname, digest_size, block_size) |
| 375 | |
| 376 | def assert_hmac_extra_cases( |
| 377 | self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size |
no test coverage detected