Adding upstream version 1.6.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
b3531968df
commit
7e1ba12a82
11 changed files with 846 additions and 281 deletions
15
src/openssl_sha256.rs
Normal file
15
src/openssl_sha256.rs
Normal 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()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue