refactor: add update method to digest engines for consistent write interface
This commit is contained in:
@@ -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! {
|
||||
|
||||
Reference in New Issue
Block a user