MCPcopy Index your code
hub / github.com/python/cpython / test_usedforsecurity_false

Method test_usedforsecurity_false

Lib/test/test_hashlib.py:258–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 self._hashlib.openssl_md5(usedforsecurity=True)
257
258 def test_usedforsecurity_false(self):
259 hashlib.new("sha256", usedforsecurity=False)
260 for cons in self.hash_constructors:
261 cons(usedforsecurity=False)
262 cons(b'', usedforsecurity=False)
263 hashlib.new("md5", usedforsecurity=False)
264 hashlib.md5(usedforsecurity=False)
265 if self._hashlib is not None:
266 self._hashlib.new("md5", usedforsecurity=False)
267 self._hashlib.openssl_md5(usedforsecurity=False)
268
269 @unittest.skipIf(get_fips_mode(), "skip in FIPS mode")
270 def test_clinic_signature(self):

Callers

nothing calls this directly

Calls 1

newMethod · 0.45

Tested by

no test coverage detected