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

Function local_sha3_256

crates/stdlib/src/hashlib.rs:653–659  ·  view source on GitHub ↗
(args: HashArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

651
652 #[pyfunction(name = "openssl_sha3_256")]
653 pub fn local_sha3_256(args: HashArgs, vm: &VirtualMachine) -> PyResult<PyHasher> {
654 let data = resolve_data(args.data, args.string, vm)?;
655 Ok(PyHasher::new(
656 "sha3_256",
657 HashWrapper::new::<Sha3_256>(data),
658 ))
659 }
660
661 #[pyfunction(name = "openssl_sha3_384")]
662 pub fn local_sha3_384(args: HashArgs, vm: &VirtualMachine) -> PyResult<PyHasher> {

Callers 1

sha3_256Function · 0.85

Calls 2

resolve_dataFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected