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

Method check_object

Lib/test/test_hmac.py:188–191  ·  view source on GitHub ↗

Check a HMAC object 'h' against the given values.

(self, h, hexdigest, hashname, digest_size, block_size)

Source from the content-addressed store, hash-verified

186 """Mixin for checking HMAC objects (pure Python, OpenSSL or built-in)."""
187
188 def check_object(self, h, hexdigest, hashname, digest_size, block_size):
189 """Check a HMAC object 'h' against the given values."""
190 self.check_internals(h, hashname, digest_size, block_size)
191 self.check_hexdigest(h, hexdigest, digest_size)
192
193 def check_internals(self, h, hashname, digest_size, block_size):
194 """Check the constant attributes of a HMAC object."""

Callers 3

check_hmac_newMethod · 0.80

Calls 2

check_internalsMethod · 0.95
check_hexdigestMethod · 0.95

Tested by

no test coverage detected