Lines Matching refs:hmac
3 import hmac
54 h = hmac.HMAC(key, data, digestmod=hashfunc)
59 h = hmac.HMAC(key, data, digestmod=hashname)
64 h = hmac.HMAC(key, digestmod=hashname)
70 h = hmac.new(key, data, digestmod=hashname)
75 h = hmac.new(key, None, digestmod=hashname)
79 h = hmac.new(key, digestmod=hashname)
83 h = hmac.new(key, data, digestmod=hashfunc)
87 hmac.digest(key, data, digest=hashname),
91 hmac.digest(key, data, digest=hashfunc),
95 h = hmac.HMAC.__new__(hmac.HMAC)
119 h = hmac.HMAC.__new__(hmac.HMAC)
357 hmac.HMAC(b'a', b'b', digestmod=MockCrazyHash)
362 hmac.HMAC(b'a', b'b', digestmod=MockCrazyHash)
370 hmac.HMAC(key, data, digestmod=None)
372 hmac.new(key, data)
374 hmac.HMAC(key, msg=data, digestmod='')
387 hmac.HMAC(b"key", digestmod='sha256')
396 h = hmac.HMAC("key", digestmod='sha256')
403 h = hmac.new("key", digestmod='sha256')
409 h = hmac.HMAC(b"key", b"hash this!", digestmod='sha256')
417 h = hmac.HMAC(bytearray(b"key"), bytearray(b"hash this!"),
426 h = hmac.HMAC(b"key", memoryview(b"hash this!"), digestmod="sha256")
435 h = hmac.HMAC(b"key", b"", hashlib.sha256)
448 h = hmac.HMAC(b"key", b"hash this!", digestmod=sha256_module.sha256)
452 digest = hmac.digest(b"key", b"hash this!", sha256_module.sha256)
463 h = hmac.HMAC(b"my secret key", digestmod="sha256")
477 h1 = hmac.HMAC.__new__(hmac.HMAC)
488 h1 = hmac.HMAC.__new__(hmac.HMAC)
502 h1 = hmac.HMAC.__new__(hmac.HMAC)
510 h1 = hmac.HMAC(b"key", digestmod="sha256")
521 h1 = hmac.new(b"key", digestmod="sha256")
536 self._test_compare_digest(hmac.compare_digest)
538 self.assertIs(hmac.compare_digest, openssl_compare_digest)
540 self.assertIs(hmac.compare_digest, operator_compare_digest)