Check that HACL* HASH interface is enabled/disabled.
(self, name, *, disabled=True)
| 925 | # OpenSSL does not provide one-shot explicit HMAC functions |
| 926 | |
| 927 | def check_builtin_hash(self, name, *, disabled=True): |
| 928 | """Check that HACL* HASH interface is enabled/disabled.""" |
| 929 | if do_hash := self.fetch_hash_function(name, "builtin"): |
| 930 | self.assertEqual(do_hash.__name__, name) |
| 931 | with self.check_context(disabled): |
| 932 | _ = do_hash(b"") |
| 933 | |
| 934 | def check_builtin_hmac(self, name, *, disabled=True): |
| 935 | """Check that HACL* HMAC interface is enabled/disabled.""" |
no test coverage detected