rs_hasher_ctx 0.1.3

rs_hasher_ctx is an internal crate of the RustyShield library. It provides the HasherContext trait used across various cryptographic hash function implementations within RustyShield. The trait overloads the `Hasher::finish()` function, unifying the approach to obtaining hash results. While primarily intended for use within RustyShield, rs_hasher_ctx can aid in minimizing dependency entries in external crates leveraging RustyShield's hashing capabilities.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![no_std]

pub use byte_array_wrapper::ByteArrayWrapper;
pub use generic_hasher::GenericHasher;

mod byte_array_wrapper;
mod generic_hasher;

/// Overloads the finish Hasher method for a version that mutates itself
pub trait HasherContext<const OUTPUT_LEN: usize> {
    type Output;

    fn finish(&mut self) -> Self::Output;
}