Skip to content

Export the PluginPrimitiveSigner to enable signing with PKCS#7#572

Open
dallasd1 wants to merge 2 commits intonotaryproject:mainfrom
dallasd1:dadelan/export-primitive-signer
Open

Export the PluginPrimitiveSigner to enable signing with PKCS#7#572
dallasd1 wants to merge 2 commits intonotaryproject:mainfrom
dallasd1:dadelan/export-primitive-signer

Conversation

@dallasd1
Copy link

Type PluginPrimitiveSigner is needed for generating PKCS#7 signatures, but that logic lives in the notation CLI repo. That new logic bypasses the PluginSigner wrapper that JWS and COSE use. This change exports the type to make it available outside of the notation-go repo, and additionally adds helper functions for external callers.

The default behavior in the signing path for JWS/COSE when calling generateSignature remains unchanged.

Signed-off-by: Dallas Delaney <dadelan@microsoft.com>
…cFromPlugin

Signed-off-by: Dallas Delaney <dadelan@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant