When to use one-shot vs streaming vs const fn
masterOne-shot vs Streaming
For performance reasons, the one-shot versions of the algorithms do not reuse the streaming implementation. Unless your specific use case requires streaming (e.g., hashing data in chunks), use the one-shot version for better performance.
const fn usage
const fn allows for compile-time hashing, but it is slower than the runtime implementation due to the limitations of Rust's const environment.
Important: To ensure the hash is actually computed at compile time and not at runtime, you must initialize the output as a const or static variable. If you call a const fn within a regular function without assigning it to a const/static context, it will execute at runtime, which is less efficient than the standard algorithm.