MCPcopy Index your code
hub / github.com/python/cpython / _block_builtin_hash_constructor

Function _block_builtin_hash_constructor

Lib/test/support/hashlib_helper.py:994–998  ·  view source on GitHub ↗

Block explicit HACL* constructors.

(name)

Source from the content-addressed store, hash-verified

992
993
994def _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
1001def _block_builtin_hmac_constructor(name):

Callers 1

block_algorithmFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…