key

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignerVerifierKeypair

type SignerVerifierKeypair struct {
	// contains filtered or unexported fields
}

SignerVerifierKeypair is a wrapper around a SignerVerifier that implements sigstore-go's Keypair interface.

func NewSignerVerifierKeypair

func NewSignerVerifierKeypair(sv signature.SignerVerifier, defaultLoadOptions *[]signature.LoadOption) (*SignerVerifierKeypair, error)

NewSignerVerifierKeypair creates a new SignerVerifierKeypair from a SignerVerifier.

func (*SignerVerifierKeypair) GetHashAlgorithm

func (k *SignerVerifierKeypair) GetHashAlgorithm() protocommon.HashAlgorithm

GetHashAlgorithm returns the hash algorithm to generate the digest to be signed.

func (*SignerVerifierKeypair) GetHint

func (k *SignerVerifierKeypair) GetHint() []byte

GetHint returns a hint for the public key.

func (*SignerVerifierKeypair) GetKeyAlgorithm

func (k *SignerVerifierKeypair) GetKeyAlgorithm() string

GetKeyAlgorithm returns the key algorithm, to be used in requests to Fulcio.

func (*SignerVerifierKeypair) GetPublicKey

func (k *SignerVerifierKeypair) GetPublicKey() crypto.PublicKey

GetPublicKey returns the public key.

func (*SignerVerifierKeypair) GetPublicKeyPem

func (k *SignerVerifierKeypair) GetPublicKeyPem() (string, error)

GetPublicKeyPem returns the public key in PEM format.

func (*SignerVerifierKeypair) GetSigningAlgorithm

func (k *SignerVerifierKeypair) GetSigningAlgorithm() protocommon.PublicKeyDetails

func (*SignerVerifierKeypair) SignData

func (k *SignerVerifierKeypair) SignData(ctx context.Context, data []byte) ([]byte, []byte, error)

SignData signs the given data with the SignerVerifier.

Jump to

Keyboard shortcuts

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