Open
Description
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 the signature.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!