MCPcopy Index your code
hub / github.com/RustPython/RustPython / sha256

Function sha256

crates/stdlib/src/sha256.rs:12–14  ·  view source on GitHub ↗
(args: HashArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

10
11 #[pyfunction]
12 fn sha256(args: HashArgs, vm: &VirtualMachine) -> PyResult {
13 Ok(local_sha256(args, vm)?.into_pyobject(vm))
14 }
15
16 pub(crate) fn module_exec(vm: &VirtualMachine, module: &Py<PyModule>) -> PyResult<()> {
17 let _ = vm.import("_hashlib", 0);

Callers 1

sha256sumFunction · 0.85

Calls 2

local_sha256Function · 0.85
into_pyobjectMethod · 0.45

Tested by 1

sha256sumFunction · 0.68