Searched refs:compare_digest (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Lib/test/ |
D | test_hmac.py | 17 from _hashlib import compare_digest as openssl_compare_digest 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) 549 def _test_compare_digest(self, compare_digest): argument 552 self.assertRaises(TypeError, compare_digest, a, b) 554 self.assertRaises(TypeError, compare_digest, a, b) 556 self.assertRaises(TypeError, compare_digest, a, b) 558 self.assertRaises(TypeError, compare_digest, a, b) 560 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)
|
/third_party/python/Lib/ |
D | hmac.py | 12 from _operator import _compare_digest as compare_digest unknown 14 compare_digest = _hashopenssl.compare_digest variable
|
D | secrets.py | 18 from hmac import compare_digest
|
/third_party/python/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 | 521 >>> from hmac import compare_digest 533 ... return compare_digest(good_sig, sig)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a3.rst | 7 Add ``volatile`` to the accumulator variable in ``hmac.compare_digest``,
|
D | 3.10.0a1.rst | 2109 :func:`hashlib.compare_digest` uses OpenSSL's ``CRYPTO_memcmp()`` function
|
/third_party/python/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
|
/third_party/python/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
|