-
Notifications
You must be signed in to change notification settings - Fork 50
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
Key should expose pre hash algorithm #469
Comments
I suppose this could be an actual digest() API as well... so you could do something like hasher = key.hasher() # this is like securesystemslib.hash.digest() except no argument needed
hasher.update(data)
digest = hasher.digest() but maybe securesystemslib shouldn't be trying to do all these things? |
FYI: The HSMSigner API does not need pre-hashing. I only pre-hash in tests as workaround for SoftHSM's limited capabilities: securesystemslib/tests/test_hsm_signer.py Lines 22 to 37 in c4e3416
|
oh interesting. If this is only needed by KMS, then we can hold off implementing anything public/generic |
I'll close this based on above comments |
This is after #456
There could be a optional
Key.get_pre_hash_algorithm()
:The text was updated successfully, but these errors were encountered: