navajo 0.0.2

cryptographic APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "std")]
pub struct ComputeRead<R> {
    reader: R,
    hasher: Hasher,
}
#[cfg(feature = "std")]
impl<R> ComputeRead<R>
where
    R: std::io::Read,
{
    pub(super) fn new(reader: R, primary_key: Arc<Key>, keys: Vec<Arc<Key>>) -> Self {
        let hasher = Hasher::new(primary_key, keys);
        Self { reader, hasher }
    }
}