rs_internal_hasher 0.1.1

This package serves as an essential building block within the `rs_ssl` cryptographic library. It is focused on providing foundational functionality and infrastructure for various cryptographic operations within the larger project. While this package has been made publicly available to satisfy the dependency requirements of Rust's cargo system, its utility is predominantly realized in the context of the `rs_ssl` project. Unless you are developing or maintaining a component of the `rs_ssl` project, this package might offer limited direct utility. For access to a full suite of cryptographic functionalities, consider using the `rs_ssl` library bundle.
Documentation
use crate::{BytePad, DigestThroughPad, LenPad};
use core::fmt::Debug;
use core::hash::Hash;
use core::ops::{Index, IndexMut, RangeTo};
use rs_internal_state::BytesLen;

pub trait HashAlgorithm: BytesLen + Clone {
    type Padding: AsRef<[u8]>
        + AsMut<[u8]>
        + BytePad
        + Clone
        + Debug
        + Default
        + DigestThroughPad<Self>
        + Eq
        + Hash
        + LenPad
        + Index<usize, Output = u8>
        + IndexMut<usize>
        + Index<RangeTo<usize>, Output = [u8]>;
    type Output: AsRef<[u8]> + Index<usize, Output = u8>;

    fn hash_block(&mut self, bytes: &[u8]);
    fn state_to_u64(&self) -> u64;
}