MCPcopy Create free account
hub / github.com/python/cpython / test_sha3_384_nist

Method test_sha3_384_nist

Lib/test/test_hmac.py:663–689  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

661 )
662
663 def test_sha3_384_nist(self):
664 for key, msg, hexdigest in [
665 (
666 bytes(range(48)),
667 b'Sample message for keylen<blocklen',
668 'd588a3c51f3f2d906e8298c1199aa8ff'
669 '6296218127f6b38a90b6afe2c5617725'
670 'bc99987f79b22a557b6520db710b7f42'
671 ), (
672 bytes(range(104)),
673 b'Sample message for keylen=blocklen',
674 'a27d24b592e8c8cbf6d4ce6fc5bf62d8'
675 'fc98bf2d486640d9eb8099e24047837f'
676 '5f3bffbe92dcce90b4ed5b1e7e44fa90'
677 ), (
678 bytes(range(152)),
679 b'Sample message for keylen>blocklen',
680 'e5ae4c739f455279368ebf36d4f5354c'
681 '95aa184c899d3870e460ebc288ef1f94'
682 '70053f73f7c6da2a71bcaec38ce7d6ac'
683 )
684 ]:
685 self.assert_hmac(
686 key, msg, hexdigest,
687 hashfunc=self.sha3_384, hashname='sha3_384',
688 digest_size=48, block_size=104
689 )
690
691 def test_sha3_512_nist(self):
692 for key, msg, hexdigest in [

Callers

nothing calls this directly

Calls 1

assert_hmacMethod · 0.80

Tested by

no test coverage detected