Check the constant attributes of a HMAC object.
(self, h, hashname, digest_size, block_size)
| 190 | self.check_hexdigest(h, hexdigest, digest_size) |
| 191 | |
| 192 | def check_internals(self, h, hashname, digest_size, block_size): |
| 193 | """Check the constant attributes of a HMAC object.""" |
| 194 | self.assertEqual(h.name, f"hmac-{hashname}") |
| 195 | self.assertEqual(h.digest_size, digest_size) |
| 196 | self.assertEqual(h.block_size, block_size) |
| 197 | |
| 198 | def check_hexdigest(self, h, hexdigest, digest_size): |
| 199 | """Check the HMAC digest of 'h' and its size.""" |
no test coverage detected