Lines Matching refs:digestmod

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)
96 h._init_old(key, data, digestmod=hashname)
102 h = c_hmac_new(key, data, digestmod=hashname)
107 h = c_hmac_new(key, digestmod=hashname)
114 h = c_hmac_new(key, data, digestmod=func)
120 h._init_hmac(key, data, digestmod=hashname)
357 hmac.HMAC(b'a', b'b', digestmod=MockCrazyHash)
362 hmac.HMAC(b'a', b'b', digestmod=MockCrazyHash)
366 """The digestmod parameter is required as of Python 3.8."""
367 with self.assertRaisesRegex(TypeError, r'required.*digestmod'):
370 hmac.HMAC(key, data, digestmod=None)
371 with self.assertRaisesRegex(TypeError, r'required.*digestmod'):
373 with self.assertRaisesRegex(TypeError, r'required.*digestmod'):
374 hmac.HMAC(key, msg=data, digestmod='')
397 hmac.HMAC(b"key", digestmod='sha256')
406 h = hmac.HMAC("key", digestmod='sha256')
413 h = hmac.new("key", digestmod='sha256')
419 h = hmac.HMAC(b"key", b"hash this!", digestmod='sha256')
428 digestmod="sha256")
436 h = hmac.HMAC(b"key", memoryview(b"hash this!"), digestmod="sha256")
458 h = hmac.HMAC(b"key", b"hash this!", digestmod=sha256_module.sha256)
473 h = hmac.HMAC(b"my secret key", digestmod="sha256")
488 h1._init_old(b"key", b"msg", digestmod="sha256")
499 h1._init_old(b"key", b"msg", digestmod="sha256")
513 h1._init_hmac(b"key", b"msg", digestmod="sha256")
520 h1 = hmac.HMAC(b"key", digestmod="sha256")
531 h1 = hmac.new(b"key", digestmod="sha256")