(self)
| 216 | return get_fips_mode() |
| 217 | |
| 218 | def test_hash_array(self): |
| 219 | a = array.array("b", range(10)) |
| 220 | for cons in self.hash_constructors: |
| 221 | c = cons(a, usedforsecurity=False) |
| 222 | if c.name in self.shakes: |
| 223 | c.hexdigest(16) |
| 224 | else: |
| 225 | c.hexdigest() |
| 226 | |
| 227 | def test_algorithms_guaranteed(self): |
| 228 | self.assertEqual(hashlib.algorithms_guaranteed, |