Home
last modified time | relevance | path

Searched refs:merkle_tree_size (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Virtualization/authfs/src/fsverity/
Dcommon.rs60 pub fn merkle_tree_size(mut data_size: u64) -> u64 { in merkle_tree_size() function
102 assert_eq!(merkle_tree_size(0), 0); in test_merkle_tree_size()
103 assert_eq!(merkle_tree_size(1), 0); in test_merkle_tree_size()
104 assert_eq!(merkle_tree_size(4096), 0); in test_merkle_tree_size()
105 assert_eq!(merkle_tree_size(4097), 4096); in test_merkle_tree_size()
106 assert_eq!(merkle_tree_size(524288), 4096); in test_merkle_tree_size()
107 assert_eq!(merkle_tree_size(524289), 12288); in test_merkle_tree_size()
/packages/modules/Virtualization/libs/apkverify/src/
Dv4.rs69 pub merkle_tree_size: u32, field
137 merkle_tree_size: r.read_u32::<LittleEndian>()?, in from_idsig()
172 merkle_tree_size: hash_tree.tree.len() as u32, in create()
195 w.write_u32::<LittleEndian>(self.merkle_tree_size)?; in write_into()
200 if copied_size != self.merkle_tree_size as u64 { in write_into()
203 self.merkle_tree_size, in write_into()
346 assert_eq!(4096, parsed.merkle_tree_size); in parse_idsig_file()
/packages/modules/Virtualization/authfs/src/fusefs/
Dfile.rs27 use crate::fsverity::{merkle_tree_size, VerifiedFileReader};
106 merkle_tree_size(file_size), in ensure_init_then()
/packages/modules/Virtualization/authfs/src/
Dfsverity.rs23 pub use common::merkle_tree_size;
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs124 let size = sig.merkle_tree_size as u64; in enable_verity()