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

Move repository_lib.get_taget_hash back from sslib to tuf #909

Merged

Conversation

lukpueh
Copy link
Member

@lukpueh lukpueh commented Sep 5, 2019

Fixes issue #:
Related to secure-systems-lab/securesystemslib#165

Description of the changes being introduced by the pull request:
The function used to last be implemented in securesystemslib and repository_lib.get_taget_hash only served as wrapper.

secure-systems-lab/securesystemslib#165 drops the function as TUF-specific.

The used constant securesystemslib.util.HASH_FUNCTION is replaced with tuf.settings.DEFAULT_HASH_ALGORITHM, both of which default to 'sha256'.

NOTE: The function might be removed altogether in the future (see corresponding code comment).

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

The function used to last be implemented in securesystemslib
and repository_lib.get_taget_hash only served as wrapper.

secure-systems-lab/securesystemslib#165 drops the function as
TUF-specific.

The used constant `securesystemslib.util.HASH_FUNCTION`
is replaced with `tuf.settings.DEFAULT_HASH_ALGORITHM`, both of
which default to 'sha256'.

NOTE: repository_lib.get_taget_hash might be removed altogether in
the future (see corresponding code comment).

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
lukpueh added a commit to secure-systems-lab/securesystemslib that referenced this pull request Sep 5, 2019
Also remove now obsolete util.HASH_FUNCTION and corresponding
tests.

The function is added back to tuf in theupdateframework/python-tuf#909.
@lukpueh lukpueh merged commit bafebee into theupdateframework:develop Sep 5, 2019
@lukpueh
Copy link
Member Author

lukpueh commented Sep 5, 2019

Thanks, @adityasaky!

tanishqjasoria pushed a commit to tanishqjasoria/securesystemslib that referenced this pull request Jan 30, 2020
Also remove now obsolete util.HASH_FUNCTION and corresponding
tests.

The function is added back to tuf in theupdateframework/python-tuf#909.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants