tuf

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 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 PublicKey

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

PublicKey Public Key database with verification keys

func NewPublicKey

func NewPublicKey(r io.Reader) (*PublicKey, error)

NewPublicKey implements the pki.PublicKey interface

func (PublicKey) CanonicalValue

func (k PublicKey) CanonicalValue() (encoded []byte, err error)

CanonicalValue implements the pki.PublicKey interface

func (PublicKey) EmailAddresses

func (k PublicKey) EmailAddresses() []string

EmailAddresses implements the pki.PublicKey interface

func (PublicKey) Identities added in v1.1.0

func (k PublicKey) Identities() ([]identity.Identity, error)

Identities implements the pki.PublicKey interface

func (PublicKey) SpecVersion

func (k PublicKey) SpecVersion() (string, error)

func (PublicKey) Subjects added in v0.9.1

func (k PublicKey) Subjects() []string

Subjects implements the pki.PublicKey interface

type Signature

type Signature struct {
	Role    string
	Version int
	// contains filtered or unexported fields
}

func NewSignature

func NewSignature(r io.Reader) (*Signature, error)

NewSignature creates and validates a TUF signed manifest

func (Signature) CanonicalValue

func (s Signature) CanonicalValue() ([]byte, error)

CanonicalValue implements the pki.Signature interface

func (Signature) Verify

func (s Signature) Verify(_ io.Reader, k interface{}, _ ...sigsig.VerifyOption) error

Verify implements the pki.Signature interface

Jump to

Keyboard shortcuts

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