Searched refs:BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance
52 const BLOCK_SIZE: usize = SECRET_SIZE * 32; constant56 const MAX_SECRET_FILE_SIZE: usize = BLOCK_SIZE * 32;62 const MAX_SECRET_FILE_SIZE_FOR_UPGRADES: usize = MAX_SECRET_FILE_SIZE + 8 * BLOCK_SIZE;74 BLOCK_SIZE >= FACTORY_RESET_SECRET_SIZE,77 const _: () = assert!((BLOCK_SIZE % SECRET_SIZE) == 0, "Broke find_empty_slot assumption");168 let mut block_buffer = [0; BLOCK_SIZE]; in find_empty_slot()169 for start_pos in (0..end).step_by(BLOCK_SIZE) { in find_empty_slot()179 if read_data.len() != BLOCK_SIZE { in find_empty_slot()354 sdsf_file.resize(BLOCK_SIZE)?; in get_or_create_factory_reset_secret_impl()355 debug!("Resized secure secrets file to size {}", BLOCK_SIZE); in get_or_create_factory_reset_secret_impl()[all …]
59 #define BLOCK_SIZE (64)62 #define BLOCK_SIZE (80) macro65 #define BLOCK_SIZE (96) macro68 #define BLOCK_SIZE (112) macro71 #define BLOCK_SIZE (128) macro74 #define BLOCK_SIZE (144) macro77 #define BLOCK_SIZE (256) macro80 #define BLOCK_SIZE (2048) macro84 #define BLOCK_SIZE (256 * 4) macro88 #define BLOCK_SIZE (256 * 4) macro[all …]