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

Function sha512

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

Source from the content-addressed store, hash-verified

10
11 #[pyfunction]
12 fn sha512(args: HashArgs, vm: &VirtualMachine) -> PyResult {
13 Ok(local_sha512(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

nothing calls this directly

Calls 2

local_sha512Function · 0.85
into_pyobjectMethod · 0.45

Tested by

no test coverage detected