1
0
Fork 0

Adding upstream version 1.6.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-06 13:55:52 +01:00
parent b3531968df
commit 7e1ba12a82
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
11 changed files with 846 additions and 281 deletions

15
src/openssl_sha256.rs Normal file
View file

@ -0,0 +1,15 @@
use crate::CalculatorSelector;
pub type OpenSslSha256 = openssl::sha::Sha256;
impl CalculatorSelector for OpenSslSha256 {
type FinishType = [u8; 32];
fn update_inner(&mut self, data: &[u8]) {
self.update(data)
}
fn finish_inner(self) -> Self::FinishType {
self.finish()
}
}