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

simplify hashing #943

Open
jku opened this issue Jan 30, 2025 · 0 comments
Open

simplify hashing #943

jku opened this issue Jan 30, 2025 · 0 comments
Labels
discussion Issues that require discussion

Comments

@jku
Copy link
Collaborator

jku commented Jan 30, 2025

Currently the hash module in securesystemslib supports multiple hash libraries:

  • This seems bonkers to me and I've never seen anyone use this functionality
  • It also makes type annotating the module a pain: this is pretty much the reason why securesystemslib is not yet marked as annotated (there are other unannotated modules but they are not as core the the library as hash is)

I think we can keep providing most of the API, but remove the cryptography support (from hashes module) and use only hashlib.

@jku jku added the discussion Issues that require discussion label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Issues that require discussion
Projects
None yet
Development

No branches or pull requests

1 participant