/external/python/cpython2/Lib/test/ |
D | test_hmac.py | 313 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/ |
D | test_hmac.py | 16 from _hashlib import compare_digest as openssl_compare_digest 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) 526 def _test_compare_digest(self, compare_digest): argument 529 self.assertRaises(TypeError, compare_digest, a, b) 531 self.assertRaises(TypeError, compare_digest, a, b) 533 self.assertRaises(TypeError, compare_digest, a, b) 535 self.assertRaises(TypeError, compare_digest, a, b) 537 self.assertRaises(TypeError, compare_digest, a, b) [all …]
|
D | test_secrets.py | 23 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/cpython3/Lib/ |
D | hmac.py | 12 from _operator import _compare_digest as compare_digest unknown 15 compare_digest = _hashopenssl.compare_digest variable
|
D | secrets.py | 18 from hmac import compare_digest
|
/external/python/cpython2/Doc/library/ |
D | hmac.rst | 45 :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/ |
D | constant_time.py | 19 return hmac.compare_digest(a, b)
|
/external/python/cpython3/Doc/library/ |
D | hmac.rst | 74 :func:`compare_digest` function instead of the ``==`` operator 88 :func:`compare_digest` function instead of the ``==`` operator 125 .. function:: compare_digest(a, b)
|
D | crypt.rst | 149 :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
|
D | secrets.rst | 129 .. function:: compare_digest(a, b) 134 See :func:`hmac.compare_digest` for additional details.
|
D | hashlib.rst | 515 >>> from hmac import compare_digest 527 ... return compare_digest(good_sig, sig)
|
/external/python/rsa/rsa/ |
D | pkcs1.py | 33 from hmac import compare_digest 260 cleartext_marker_bad = not compare_digest(cleartext[:2], b'\x00\x02')
|
/external/python/cpython2/Lib/ |
D | hmac.py | 8 from operator import _compare_digest as compare_digest unknown
|
/external/python/cpython2/Modules/ |
D | operator.c | 301 compare_digest(PyObject *self, PyObject *args) in compare_digest() function 447 {"_compare_digest", (PyCFunction)compare_digest, METH_VARARGS,
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.9.0b2.rst | 193 :func:`hashlib.compare_digest` uses OpenSSL's ``CRYPTO_memcmp()`` function
|
D | 3.9.1rc1.rst | 28 Add ``volatile`` to the accumulator variable in ``hmac.compare_digest``,
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.7rc1.rst | 138 Backport hmac.compare_digest from Python 3. This is part of PEP 466.
|
/external/python/cryptography/ |
D | CHANGELOG.rst | 107 * Support for Python 2.7.x without ``hmac.compare_digest`` has been deprecated.
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 1406 A new :func:`~hmac.compare_digest` function has been added to prevent side
|
D | 2.7.rst | 2609 * :func:`hmac.compare_digest` was backported from Python 3 to make a timing
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 2579 * :func:`hmac.compare_digest` was backported from Python 3 to make a timing
|
/external/python/cpython3/Misc/ |
D | HISTORY | 7193 - Issue #15061: Re-implemented hmac.compare_digest() in C to prevent further 7299 renamed to hmac.compare_digest, restricted to operating on bytes inputs
|