Home
last modified time | relevance | path

Searched refs:compare_digest (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_hmac.py313 self.assertRaises(TypeError, hmac.compare_digest, a, b)
315 self.assertRaises(TypeError, hmac.compare_digest, a, b)
317 self.assertRaises(TypeError, hmac.compare_digest, a, b)
319 self.assertRaises(TypeError, hmac.compare_digest, a, b)
321 self.assertRaises(TypeError, hmac.compare_digest, a, b)
325 self.assertFalse(hmac.compare_digest(a, b))
327 self.assertFalse(hmac.compare_digest(a, b))
331 self.assertFalse(hmac.compare_digest(a, b))
333 self.assertFalse(hmac.compare_digest(a, b))
337 self.assertTrue(hmac.compare_digest(a, b))
[all …]
/external/python/cpython3/Lib/test/
Dtest_hmac.py447 self.assertRaises(TypeError, hmac.compare_digest, a, b)
449 self.assertRaises(TypeError, hmac.compare_digest, a, b)
451 self.assertRaises(TypeError, hmac.compare_digest, a, b)
453 self.assertRaises(TypeError, hmac.compare_digest, a, b)
455 self.assertRaises(TypeError, hmac.compare_digest, a, b)
459 self.assertFalse(hmac.compare_digest(a, b))
461 self.assertFalse(hmac.compare_digest(a, b))
465 self.assertFalse(hmac.compare_digest(a, b))
467 self.assertFalse(hmac.compare_digest(a, b))
471 self.assertTrue(hmac.compare_digest(a, b))
[all …]
Dtest_secrets.py23 self.assertTrue(secrets.compare_digest(a, b))
24 self.assertTrue(secrets.compare_digest(a.encode('utf-8'), b.encode('utf-8')))
28 self.assertFalse(secrets.compare_digest("abc", "abcd"))
29 self.assertFalse(secrets.compare_digest(b"abc", b"abcd"))
33 self.assertFalse(secrets.compare_digest(a, b))
34 self.assertFalse(secrets.compare_digest(a.encode('utf-8'), b.encode('utf-8')))
42 self.assertRaises(TypeError, secrets.compare_digest, a, b)
43 self.assertRaises(TypeError, secrets.compare_digest, b, a)
47 self.assertIsInstance(secrets.compare_digest("abc", "abc"), bool)
48 self.assertIsInstance(secrets.compare_digest("abc", "xyz"), bool)
/external/python/cpython2/Doc/library/
Dhmac.rst45 :func:`compare_digest` function instead of the ``==`` operator
59 :func:`compare_digest` function instead of the ``==`` operator
71 .. function:: compare_digest(a, b)
/external/python/cryptography/src/cryptography/hazmat/primitives/
Dconstant_time.py19 return hmac.compare_digest(a, b)
/external/python/cpython3/Lib/
Dsecrets.py19 from hmac import compare_digest
Dhmac.py7 from _operator import _compare_digest as compare_digest unknown
/external/python/cpython3/Doc/library/
Dhmac.rst74 :func:`compare_digest` function instead of the ``==`` operator
88 :func:`compare_digest` function instead of the ``==`` operator
119 .. function:: compare_digest(a, b)
Dcrypt.rst149 :func:`hmac.compare_digest` is suitable for this purpose)::
154 from hmac import compare_digest as compare_hash
171 from hmac import compare_digest as compare_hash
Dsecrets.rst129 .. function:: compare_digest(a, b)
134 See :func:`hmac.compare_digest` for additional details.
Dhashlib.rst504 >>> from hmac import compare_digest
516 ... return compare_digest(good_sig, sig)
/external/python/cpython2/Lib/
Dhmac.py8 from operator import _compare_digest as compare_digest unknown
/external/python/cpython2/Modules/
Doperator.c301 compare_digest(PyObject *self, PyObject *args) in compare_digest() function
447 {"_compare_digest", (PyCFunction)compare_digest, METH_VARARGS,
/external/python/cpython2/Misc/NEWS.d/
D2.7.7rc1.rst138 Backport hmac.compare_digest from Python 3. This is part of PEP 466.
/external/python/cryptography/
DCHANGELOG.rst107 * Support for Python 2.7.x without ``hmac.compare_digest`` has been deprecated.
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1406 A new :func:`~hmac.compare_digest` function has been added to prevent side
D2.7.rst2609 * :func:`hmac.compare_digest` was backported from Python 3 to make a timing
/external/python/cpython2/Doc/whatsnew/
D2.7.rst2579 * :func:`hmac.compare_digest` was backported from Python 3 to make a timing
/external/python/cpython3/Misc/
DHISTORY7193 - Issue #15061: Re-implemented hmac.compare_digest() in C to prevent further
7299 renamed to hmac.compare_digest, restricted to operating on bytes inputs