Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bmap file integrity check #59

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Commits on Jan 19, 2023

  1. Add bmap checksum field in Bmap struct

    bmap_file_checksum is going to be used to check the integrity of the
    file. It is now included in the Bmap struct type and the
    builder.
    
    Signed-off-by: Rafael Garcia Ruiz <[email protected]>
    Razaloc committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    82d73bd View commit details
    Browse the repository at this point in the history
  2. Bmap file integrity check

    Before using a Bmap file checks if its checksum is correct for the
    current bmap file.
    Bmap checksum is the application of Sha256 to the file data. When the
    bmap file is created, the value of the checksum has to be zero (all ASCII
    "0" symbols). Once calculated, zeros are replaced by the checksum, notice
    this modifies the file itself.
    In order to calculate the checksum before using it and compare it with
    the original, we need to set the field as all "0" before applying Sha256.
    
    Closes: #50
    
    Signed-off-by: Rafael Garcia Ruiz <[email protected]>
    Razaloc committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    afd5c44 View commit details
    Browse the repository at this point in the history
  3. Remote Bmap file integrity check

    Remote copy checks the integrity of the bmap file after downloading it.
    
    Signed-off-by: Rafael Garcia Ruiz <[email protected]>
    Razaloc committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    1ac7fed View commit details
    Browse the repository at this point in the history