Block HACL* implementations, except those given in *exclude*.
(*, exclude=())
| 1088 | |
| 1089 | @contextlib.contextmanager |
| 1090 | def block_builtin_algorithms(*, exclude=()): |
| 1091 | """Block HACL* implementations, except those given in *exclude*.""" |
| 1092 | with contextlib.ExitStack() as stack: |
| 1093 | for name in CANONICAL_DIGEST_NAMES.difference(exclude): |
| 1094 | stack.enter_context(block_algorithm(name, allow_openssl=True)) |
| 1095 | yield |
nothing calls this directly
no test coverage detected
searching dependent graphs…