Skip to main content

create_hash_context

Function create_hash_context 

Source
pub fn create_hash_context() -> HashContext
Expand description

Create a new hash context with no provider installed.

Call HashContext::set_provider or use HashContext::with_provider before HashContext::hash will succeed. Leaf crates (for example lib-q-hash) and the libq umbrella expose factories that install a hash implementation up front.