8000 Expose signature.Signer hash algorithm · Issue #860 · sigstore/sigstore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Expose signature.Signer hash algorithm #860
Open
@tri-adam

Description

@tri-adam

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0