add md5, minor changes to trait

This commit is contained in:
2025-07-12 17:29:51 -04:00
parent 33119c8ec6
commit eb9c6f9475
3 changed files with 9 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ mod null_hash;
use crate::Args;
use md5::digest;
use std::sync::Arc;
type BITS256 = [u8; 32];
@@ -46,12 +47,8 @@ impl HashReturn {
pub trait Hasher {
fn new() -> Self;
fn digest(&mut self, bytes: ArcU8);
fn digest(&mut self, bytes: impl AsRef<[u8]>);
fn complete(self) -> HashReturn;
}
struct HashKeeper {}
pub struct Hashes {
hashes: Args,
}
pub struct Hashes {}