• Home
  • Raw
  • Download

Lines Matching refs:hmac

3 import hmac
38 h = hmac.HMAC(key, data, digestmod=hashfunc)
45 h = hmac.HMAC(key, data, digestmod=hashname)
52 h = hmac.HMAC(key, digestmod=hashname)
58 h = hmac.new(key, data, digestmod=hashname)
65 h = hmac.new(key, None, digestmod=hashname)
69 h = hmac.new(key, digestmod=hashname)
73 h = hmac.new(key, data, digestmod=hashfunc)
77 hmac.digest(key, data, digest=hashname),
81 hmac.digest(key, data, digest=hashfunc),
86 hmac.digest(key, data, digest=hashname),
90 hmac.digest(key, data, digest=hashfunc),
340 hmac.HMAC(b'a', b'b', digestmod=MockCrazyHash)
345 hmac.HMAC(b'a', b'b', digestmod=MockCrazyHash)
353 hmac.HMAC(key, data, digestmod=None)
355 hmac.new(key, data)
357 hmac.HMAC(key, msg=data, digestmod='')
370 hmac.HMAC(b"key", digestmod='sha256')
379 h = hmac.HMAC("key", digestmod='sha256')
386 h = hmac.new("key", digestmod='sha256')
392 h = hmac.HMAC(b"key", b"hash this!", digestmod='sha256')
400 h = hmac.HMAC(bytearray(b"key"), bytearray(b"hash this!"),
409 h = hmac.HMAC(b"key", memoryview(b"hash this!"), digestmod="sha256")
418 h = hmac.HMAC(b"key", b"", hashlib.sha256)
438 h = hmac.HMAC(b"my secret key", digestmod="sha256")
452 h1 = hmac.HMAC(b"key", digestmod="sha256")
464 h1 = hmac.HMAC(b"key", digestmod="sha256")
479 h1 = hmac.HMAC(b"key", digestmod="sha256")
487 h1 = hmac.HMAC(b"key", digestmod="sha256")
498 h1 = hmac.new(b"key", digestmod="sha256")
513 self._test_compare_digest(hmac.compare_digest)
515 self.assertIs(hmac.compare_digest, openssl_compare_digest)
517 self.assertIs(hmac.compare_digest, operator_compare_digest)