MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_sha3_384_nist

Method test_sha3_384_nist

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_sha3_384_nistMethod · 0.45

Calls 1

assert_hmacMethod · 0.80

Tested by

no test coverage detected