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

Method test_sha3_224_nist

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

Source from the content-addressed store, hash-verified

615 })
616
617 def test_sha3_224_nist(self):
618 for key, msg, hexdigest in [
619 (
620 bytes(range(28)),
621 b'Sample message for keylen<blocklen',
622 '332cfd59347fdb8e576e77260be4aba2d6dc53117b3bfb52c6d18c04'
623 ), (
624 bytes(range(144)),
625 b'Sample message for keylen=blocklen',
626 'd8b733bcf66c644a12323d564e24dcf3fc75f231f3b67968359100c7'
627 ), (
628 bytes(range(172)),
629 b'Sample message for keylen>blocklen',
630 '078695eecc227c636ad31d063a15dd05a7e819a66ec6d8de1e193e59'
631 )
632 ]:
633 self.assert_hmac(
634 key, msg, hexdigest,
635 hashfunc=self.sha3_224, hashname='sha3_224',
636 digest_size=28, block_size=144
637 )
638
639 def test_sha3_256_nist(self):
640 for key, msg, hexdigest in [

Callers 1

test_sha3_224_nistMethod · 0.45

Calls 1

assert_hmacMethod · 0.80

Tested by

no test coverage detected