sigstore

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 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

func (h Handler) Sign(cctx credentials.Context, digest string, hash crypto.Hash, issuer string, key interface{}) (*signing.Signature, error)

Sign implements the signing functionality.

func (Handler) Verify

func (h Handler) Verify(digest string, hash crypto.Hash, sig *signing.Signature, key interface{}) (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