12 #include <FpConfig.hpp> 
   15 #include <Fw/Types/Assert.hpp> 
   49     if(
static_cast<U64>(int_file_size) != filesize)
 
   64     for(i = 0; i < blocks; i++)
 
   66       stat = f.
read(block_data, bytes_to_read);
 
   73       hash.
update(block_data, bytes_to_read);
 
   77     bytes_to_read = remaining_bytes;
 
   78     if(remaining_bytes > 0)
 
   80       stat = f.
read(block_data, bytes_to_read);
 
   87       hash.
update(block_data, remaining_bytes);
 
  107     bytes_to_write = 
sizeof(checksum);
 
  108     stat = f.
write(
reinterpret_cast<U8*
>(&checksum), bytes_to_write);
 
  138       stat = f.
read(
reinterpret_cast<U8*
>(&checksum_from_file), checksum_from_file_size);
 
  139       if(stat != 
Os::File::OP_OK || checksum_from_file_size != 
sizeof(checksum_from_file))
 
  163     U32 checksum_from_file;
 
  175     if(
static_cast<U64>(int_file_size) != filesize)
 
  190     for(i = 0; i < blocks; i++)
 
  192       stat = f.
read(block_data, bytes_to_read);
 
  199       hash.
update(block_data, bytes_to_read);
 
  203     bytes_to_read = remaining_bytes;
 
  204     if(remaining_bytes > 0)
 
  206       stat = f.
read(block_data, bytes_to_read);
 
  213       hash.
update(block_data, remaining_bytes);
 
  219     hash.
final(checksum);
 
  227     if(checksum != checksum_from_file)
 
  229       expected = checksum_from_file;
 
  234     expected = checksum_from_file;