sigstore

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const Algorithm = "sigstore"

Algorithm defines the type for the RSA PKCS #1 v1.5 signature algorithm.

View Source
const MediaType = "application/vnd.ocm.signature.sigstore"

MediaType defines the media type for a plain RSA signature.

View Source
const SignaturePEMBlockAlgorithmHeader = "Algorithm"

SignaturePEMBlockAlgorithmHeader defines the header in a signature pem block where the signature algorithm is defined.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

Handler is a signatures.Signer compatible struct to sign using sigstore and a signatures.Verifier compatible struct to verify using sigstore.

func (Handler) Algorithm

func (h Handler) Algorithm() string

Algorithm specifies the name of the signing algorithm.

func (Handler) Sign

Sign implements the signing functionality.

func (Handler) Verify

func (h Handler) Verify(digest string, sig *signing.Signature, sctx signing.SigningContext) (err error)

Verify checks the signature, returns an error on verification failure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL