sha256 1.6.0

sha256 crypto digest
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()
    }
}