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

Add hash and length verification to MetaFile and TargetFile #1437

Merged
merged 3 commits into from
Jun 16, 2021

Commits on Jun 11, 2021

  1. Add hash and length verification

    Extend MetaFile and TargetFile classes with methods
    for length and hash verification.  The common functionality
    is implemented as static methods of the base class while
    MetaFile and TargetFile implement the user API based on it.
    
    Define LengthOrHasheMismathError.
    
    Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
    sechkova committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    8710f8d View commit details
    Browse the repository at this point in the history
  2. Update test_api

    Add tests for hash and length verification.
    
    Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
    sechkova committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    22facb7 View commit details
    Browse the repository at this point in the history
  3. Add basic input validation to {Meta,Target}File

    Add basic checks for allowed input values during
    objects' serialization.
    
    Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
    sechkova committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    dcdd332 View commit details
    Browse the repository at this point in the history