Home
last modified time | relevance | path

Searched refs:Sha256Hash (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Virtualization/authfs/src/fsverity/
Dbuilder.rs18 build_fsverity_digest, merkle_tree_height, FsverityError, Sha256Hash, SHA256_HASH_SIZE,
26 const HASH_OF_4096_ZEROS: Sha256Hash = [
40 leaves: Vec<Sha256Hash>,
44 fn hash_all_pages(source: &[Sha256Hash]) -> Vec<Sha256Hash> { in hash_all_pages() argument
85 pub fn update_hash(&mut self, index: usize, hash: &Sha256Hash, size_at_least: u64) { in update_hash() argument
105 pub fn is_consistent(&self, index: usize, hash: &Sha256Hash) -> bool { in is_consistent()
113 fn calculate_root_hash(&self) -> Result<Sha256Hash, FsverityError> { in calculate_root_hash() argument
143 pub fn calculate_fsverity_digest(&self) -> Result<Sha256Hash, FsverityError> { in calculate_fsverity_digest() argument
259 fn generate_fsverity_digest_sequentially(test_data: &[u8]) -> Result<Sha256Hash> { in generate_fsverity_digest_sequentially() argument
Dcommon.rs29 pub type Sha256Hash = [u8; SHA256_HASH_SIZE]; typedef
71 pub fn build_fsverity_digest(root_hash: &Sha256Hash, file_size: u64) -> Sha256Hash { in build_fsverity_digest() argument
Deditor.rs59 use super::common::{Sha256Hash, SHA256_HASH_SIZE};
90 pub fn calculate_fsverity_digest(&self) -> io::Result<Sha256Hash> { in calculate_fsverity_digest() argument
131 ) -> io::Result<Sha256Hash> { in new_hash_for_incomplete_write() argument
163 ) -> io::Result<Sha256Hash> { in new_chunk_hash() argument