Block explicit HACL* constructors.
(name)
| 992 | |
| 993 | |
| 994 | def _block_builtin_hash_constructor(name): |
| 995 | """Block explicit HACL* constructors.""" |
| 996 | def dummy(data=b'', *, usedforsecurity=True, string=b''): |
| 997 | raise ValueError(f"blocked explicit builtin hash name: {name}") |
| 998 | return _make_hash_constructor_blocker(name, dummy, 'builtin') |
| 999 | |
| 1000 | |
| 1001 | def _block_builtin_hmac_constructor(name): |
no test coverage detected
searching dependent graphs…