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

Function unsupported_hash

crates/stdlib/src/hashlib.rs:255–260  ·  view source on GitHub ↗
(name: &str, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

253 }
254
255 fn unsupported_hash(name: &str, vm: &VirtualMachine) -> PyBaseExceptionRef {
256 vm.new_exception_msg(
257 UnsupportedDigestmodError::static_type().to_owned(),
258 format!("unsupported hash type {name}").into(),
259 )
260 }
261
262 // Object-safe HMAC trait for type-erased dispatch
263 trait DynHmac: Send + Sync {

Callers 3

hmac_newFunction · 0.85
hmac_digestFunction · 0.85
pbkdf2_hmacFunction · 0.85

Calls 2

new_exception_msgMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected