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

Method assert_hmac_new

Lib/test/test_hmac.py:278–289  ·  view source on GitHub ↗

Check that HMAC(key, msg) == digest. This test uses the `hmac_new()` method to create HMAC objects.

(
        self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
    )

Source from the content-addressed store, hash-verified

276 )
277
278 def assert_hmac_new(
279 self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
280 ):
281 """Check that HMAC(key, msg) == digest.
282
283 This test uses the `hmac_new()` method to create HMAC objects.
284 """
285 self.check_hmac_new(
286 key, msg, hexdigest, hashname, digest_size, block_size,
287 hmac_new_func=self.hmac_new,
288 hmac_new_kwds={'digestmod': digestmod},
289 )
290
291 def assert_hmac_new_by_name(
292 self, key, msg, hexdigest, hashname, digest_size, block_size

Callers 1

assert_hmacMethod · 0.95

Calls 1

check_hmac_newMethod · 0.95

Tested by

no test coverage detected