Decorator raising SkipTest if a HACL* hashing algorithm is missing.
(canonical_name, *, usedforsecurity=True)
| 730 | |
| 731 | |
| 732 | def requires_builtin_hashdigest(canonical_name, *, usedforsecurity=True): |
| 733 | """Decorator raising SkipTest if a HACL* hashing algorithm is missing.""" |
| 734 | info = get_hash_func_info(canonical_name) |
| 735 | return _make_requires_builtin_hashdigest_decorator( |
| 736 | info.builtin, usedforsecurity=usedforsecurity |
| 737 | ) |
| 738 | |
| 739 | |
| 740 | def requires_builtin_hashes(*, exclude=(), usedforsecurity=True): |
nothing calls this directly
no test coverage detected
searching dependent graphs…