Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ digest_wrapper
Function
digest_wrapper
Lib/hmac.py:33–35 ·
view source on GitHub ↗
(d=b'')
Source
from the content-addressed store, hash-verified
31
return
digest_like
32
if
isinstance(digest_like, str):
33
def
digest_wrapper(d=b
''
):
34
import
hashlib
35
return
hashlib.new(digest_like, d)
36
else
:
37
def
digest_wrapper(d=b
''
):
38
return
digest_like.new(d)
Callers
nothing calls this directly
Calls
1
new
Method · 0.45
Tested by
no test coverage detected