| 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): |