-
Notifications
You must be signed in to change notification settings - Fork 113
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
Expose signature.Signer hash algorithm #860
Comments
CC @haydentherapper any thoughts? EDIT: I forgot to how the |
Currently, the hash function is specified per signing (invocation of |
Oh, that's a great point. There's a number of related features here:
IIUC the FR, it's to expose the |
Description
I'd like to obtain the hash algorithm used by a signature.Signer. I have a use case where the caller passes me a
signature.Signer
and I need to generate a signature and then wrap it in a descriptor that includes the hash algorithm. The implementation currently ignores the value in thesignature.Signer
to get around the fact that this value isn't exposed (sylabs/sif#249).I appreciate that
signature.Signer
itself can't be extended without breaking v1 module compatibility, but I'm wondering whether concrete types that implement it such as ED25519Signer could expose the hash algorithm, by implementing crypto.SIgnerOpts or similar? If that would be acceptable, I'd be happy to submit a PR for that.Thanks!
The text was updated successfully, but these errors were encountered: