Searched refs:crc32 (Results 1 – 8 of 8) sorted by relevance
/bootable/libbootloader/gbl/libabr/src/ |
D | lib.rs | 212 pub crc32: u32, field 258 crc32: u32::from_be_bytes(bytes[28..ABR_DATA_SIZE].try_into().unwrap()), in deserialize() 265 if res.crc32 != crc32(&bytes[..28]) { in deserialize() 288 self.crc32 = crc32(&res[..28]); 289 res[28..ABR_DATA_SIZE].clone_from_slice(&self.crc32.to_be_bytes()); 360 crc32: 0, in default() 642 fn crc32(data: &[u8]) -> u32 { in crc32() function
|
/bootable/libbootloader/gbl/third_party/libzbi/src/ |
D | lib.rs | 174 && (self.header.crc32 != ZBI_ITEM_NO_CRC32) in is_valid() 244 header.crc32 = ZBI_ITEM_NO_CRC32; in new() 364 } else if !header.get_flags().contains(ZbiFlags::CRC32) && header.crc32 != ZBI_ITEM_NO_CRC32 in parse() 1235 crc32: ZBI_ITEM_NO_CRC32, in get_header_default() 1259 crc32: ZBI_ITEM_NO_CRC32, in container_hdr() 1286 crc32: ZBI_ITEM_NO_CRC32, in update_container_length() 1338 assert_eq!(u32_array[7], expect.crc32); in zbi_test_item_new() 1411 crc32: ZBI_ITEM_NO_CRC32, in zbi_test_container_new() 1447 crc32: ZBI_ITEM_NO_CRC32, in zbi_test_container_parse_empty() 1468 crc32: ZBI_ITEM_NO_CRC32, in zbi_test_container_parse_bad_type() [all …]
|
D | zbi_format.rs | 121 pub crc32: u32, field 173 unsafe { ::std::ptr::addr_of!((*ptr).crc32) as usize - ptr as usize }, in bindgen_test_layout_zbi_header_t() 175 concat!("Offset of field: ", stringify!(zbi_header_t), "::", stringify!(crc32)) in bindgen_test_layout_zbi_header_t()
|
/bootable/libbootloader/gbl/libstorage/src/ |
D | gpt.rs | 32 pub crc32: u32, field 53 self.crc32 = 0; in update_crc() 54 self.crc32 = crc32(self.as_bytes()); in update_crc() 289 if hasher.finalize() != header.crc32 { in validate_gpt() 297 Ok(header.entries_crc == crc32(out)) in validate_gpt() 410 fn crc32(data: &[u8]) -> u32 { in crc32() function 545 crc32(&gpt.primary_entries[..(2 * GPT_ENTRY_SIZE).try_into().unwrap()]); in test_load_gpt_non_max_entries()
|
/bootable/libbootloader/gbl/libgbl/src/slots/ |
D | fuchsia.rs | 107 crc32: BigEndianU32, field 131 if abr_data.crc32.get() != abr_data.calculate_crc32() { in validate() 140 self.crc32 = self.calculate_crc32().into(); in prepare_for_sync() 154 crc32: BigEndianU32::ZERO, in default() 156 data.crc32.set(data.calculate_crc32()); in default() 364 let bad_crc = abr.crc32.get() ^ BigEndianU32::MAX_VALUE.get(); in test_slot_block_parse_bad_crc() 365 abr.crc32 = bad_crc.into(); in test_slot_block_parse_bad_crc() 598 abr_data.crc32.set(abr_data.calculate_crc32()); in test_deserialize_modified_to_clean_cache()
|
D | android.rs | 203 crc32: LittleEndianU32, field 225 crc32: LittleEndianU32::ZERO, in default() 234 data.crc32.set(data.calculate_crc32()); in default() 250 if boot_control_data.crc32.get() != boot_control_data.calculate_crc32() { in validate() 258 self.crc32 = self.calculate_crc32().into(); in prepare_for_sync() 476 let bad_crc = boot_ctrl.crc32.get() ^ LittleEndianU32::MAX_VALUE.get(); in test_slot_block_parse_bad_crc() 477 boot_ctrl.crc32 = bad_crc.into(); in test_slot_block_parse_bad_crc()
|
/bootable/libbootloader/gbl/libefi/defs/ |
D | types.h | 32 uint32_t crc32; member
|
D | boot_service.h | 122 EfiStatus (*calculate_crc32)(void* data, size_t len, uint32_t* crc32);
|