1
0
Fork 0
rust-sha256/src/openssl_sha256.rs

16 lines
314 B
Rust
Raw Normal View History

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()
}
}