Documentation ¶
Overview ¶
Package dsse includes wrappers to support DSSE
Package dsse contains handlers for Dead Simple Signing Envelopes
Index ¶
- func WrapMultiSigner(payloadType string, sL ...signature.Signer) signature.Signer
- func WrapMultiSignerVerifier(payloadType string, threshold int, svL ...signature.SignerVerifier) signature.SignerVerifier
- func WrapMultiVerifier(payloadType string, threshold int, vL ...signature.Verifier) signature.Verifier
- func WrapSigner(s signature.Signer, payloadType string) signature.Signer
- func WrapSignerVerifier(sv signature.SignerVerifier, payloadType string) signature.SignerVerifier
- func WrapVerifier(v signature.Verifier) signature.Verifier
- type SignerAdapter
- type VerifierAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapMultiSigner ¶
WrapMultiSigner returns a signature.Signer that uses the DSSE encoding format
func WrapMultiSignerVerifier ¶
func WrapMultiSignerVerifier(payloadType string, threshold int, svL ...signature.SignerVerifier) signature.SignerVerifier
WrapMultiSignerVerifier returns a signature.SignerVerifier that uses the DSSE encoding format
func WrapMultiVerifier ¶
func WrapMultiVerifier(payloadType string, threshold int, vL ...signature.Verifier) signature.Verifier
WrapMultiVerifier returns a signature.Verifier that uses the DSSE encoding format
func WrapSigner ¶
WrapSigner returns a signature.Signer that uses the DSSE encoding format
func WrapSignerVerifier ¶
func WrapSignerVerifier(sv signature.SignerVerifier, payloadType string) signature.SignerVerifier
WrapSignerVerifier returns a signature.SignerVerifier that uses the DSSE encoding format
Types ¶
type SignerAdapter ¶
type SignerAdapter struct { SignatureSigner signature.Signer Pub crypto.PublicKey Opts []signature.SignOption PubKeyID string }
SignerAdapter wraps a `sigstore/signature.Signer`, making it compatible with `go-securesystemslib/dsse.Signer`.
func (SignerAdapter) KeyID ¶
func (a SignerAdapter) KeyID() (string, error)
KeyID implements `go-securesystemslib/dsse.Verifier`
func (*SignerAdapter) Public ¶
func (a *SignerAdapter) Public() crypto.PublicKey
Public implements `go-securesystemslib/dsse.Verifier`
type VerifierAdapter ¶
type VerifierAdapter struct { SignatureVerifier signature.Verifier Pub crypto.PublicKey PubKeyID string }
VerifierAdapter wraps a `sigstore/signature.Verifier`, making it compatible with `go-securesystemslib/dsse.Verifier`.
func (*VerifierAdapter) KeyID ¶
func (a *VerifierAdapter) KeyID() (string, error)
KeyID implements `go-securesystemslib/dsse.Verifier`
func (*VerifierAdapter) Public ¶
func (a *VerifierAdapter) Public() crypto.PublicKey
Public implements `go-securesystemslib/dsse.Verifier`