(self)
| 201 | return get_fips_mode() |
| 202 | |
| 203 | def test_hash_array(self): |
| 204 | a = array.array("b", range(10)) |
| 205 | for cons in self.hash_constructors: |
| 206 | c = cons(a, usedforsecurity=False) |
| 207 | if c.name in self.shakes: |
| 208 | c.hexdigest(16) |
| 209 | else: |
| 210 | c.hexdigest() |
| 211 | |
| 212 | def test_algorithms_guaranteed(self): |
| 213 | self.assertEqual(hashlib.algorithms_guaranteed, |