Documentation ¶
Index ¶
- func Sign(r io.Reader, dataType string, w io.Writer, opts ...dsse.SignOption) error
- func Verify(ctx context.Context, policyEnvelope dsse.Envelope, ...) (map[string][]source.VerifiedCollection, error)
- func VerifySignature(r io.Reader, verifiers ...cryptoutil.Verifier) (dsse.Envelope, error)
- type RunOption
- type RunResult
- type VerifyOption
- func VerifyWithCollectionSource(source source.Sourcer) VerifyOption
- func VerifyWithPolicyCAIntermediates(intermediates []*x509.Certificate) VerifyOption
- func VerifyWithPolicyCARoots(roots []*x509.Certificate) VerifyOption
- func VerifyWithPolicyTimestampAuthorities(authorities []timestamp.TimestampVerifier) VerifyOption
- func VerifyWithSubjectDigests(subjectDigests []cryptoutil.DigestSet) VerifyOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Verify ¶
func Verify(ctx context.Context, policyEnvelope dsse.Envelope, policyVerifiers []cryptoutil.Verifier, opts ...VerifyOption) (map[string][]source.VerifiedCollection, error)
Verify verifies a set of attestations against a provided policy. The set of attestations that satisfy the policy will be returned if verifiation is successful.
func VerifySignature ¶
Types ¶
type RunOption ¶
type RunOption func(ro *runOptions)
func RunWithAttestationOpts ¶
func RunWithAttestationOpts(opts ...attestation.AttestationContextOption) RunOption
func RunWithAttestors ¶
func RunWithAttestors(attestors []attestation.Attestor) RunOption
func RunWithTimestampers ¶
func RunWithTimestampers(ts ...timestamp.Timestamper) RunOption
type RunResult ¶
type RunResult struct { Collection attestation.Collection SignedEnvelope dsse.Envelope }
type VerifyOption ¶
type VerifyOption func(*verifyOptions)
func VerifyWithCollectionSource ¶
func VerifyWithCollectionSource(source source.Sourcer) VerifyOption
func VerifyWithPolicyCAIntermediates ¶ added in v0.2.3
func VerifyWithPolicyCAIntermediates(intermediates []*x509.Certificate) VerifyOption
func VerifyWithPolicyCARoots ¶ added in v0.2.2
func VerifyWithPolicyCARoots(roots []*x509.Certificate) VerifyOption
func VerifyWithPolicyTimestampAuthorities ¶ added in v0.2.2
func VerifyWithPolicyTimestampAuthorities(authorities []timestamp.TimestampVerifier) VerifyOption
func VerifyWithSubjectDigests ¶
func VerifyWithSubjectDigests(subjectDigests []cryptoutil.DigestSet) VerifyOption
Click to show internal directories.
Click to hide internal directories.