signature

package
v0.0.0-...-d2f00f9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package signature provides shared signature validation code functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSignatureCosign

func ValidateSignatureCosign(ctx context.Context, pubkey, sig []byte, payloadHash digest.Digest) (bool, error)

ValidateSignatureCosign verifies the provided payload is signed with the provided signature, using cosign PKI sig Currently only supports sha256 hashing algorithm.

func ValidateSignatureNotary

func ValidateSignatureNotary(ctx context.Context, subjectDesc v1.Descriptor, sig []byte, trustStore truststore.X509TrustStore) (*notation.VerificationOutcome, error)

ValidateSignatureNotary performs certificate signature validation using Notary. This function constructs the necessary options and trust policy from a subject descriptor expected to have been signed, and a trust store that provides a x509 certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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