(self)
| 637 | ) |
| 638 | |
| 639 | def test_sha3_256_nist(self): |
| 640 | for key, msg, hexdigest in [ |
| 641 | ( |
| 642 | bytes(range(32)), |
| 643 | b'Sample message for keylen<blocklen', |
| 644 | '4fe8e202c4f058e8dddc23d8c34e4673' |
| 645 | '43e23555e24fc2f025d598f558f67205' |
| 646 | ), ( |
| 647 | bytes(range(136)), |
| 648 | b'Sample message for keylen=blocklen', |
| 649 | '68b94e2e538a9be4103bebb5aa016d47' |
| 650 | '961d4d1aa906061313b557f8af2c3faa' |
| 651 | ), ( |
| 652 | bytes(range(168)), |
| 653 | b'Sample message for keylen>blocklen', |
| 654 | '9bcf2c238e235c3ce88404e813bd2f3a' |
| 655 | '97185ac6f238c63d6229a00b07974258' |
| 656 | ) |
| 657 | ]: |
| 658 | self.assert_hmac( |
| 659 | key, msg, hexdigest, |
| 660 | hashfunc=self.sha3_256, hashname='sha3_256', |
| 661 | digest_size=32, block_size=136 |
| 662 | ) |
| 663 | |
| 664 | def test_sha3_384_nist(self): |
| 665 | for key, msg, hexdigest in [ |
no test coverage detected