Closed jku closed 1 year ago
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:
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()
: