refactor: add update method to digest engines for consistent write interface

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 20:33:13 -03:00
parent 4ee0715e39
commit f748fdd0f3
4 changed files with 28 additions and 2 deletions

View File

@@ -32,6 +32,9 @@ pub trait DigestEngine {
}
fn create(&self) -> Result<Box<dyn Write>>;
fn finalize(&mut self) -> io::Result<String>;
// Update the digest with new data
fn update(&mut self, data: &[u8]);
}
lazy_static! {