pki

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactFactory

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

func NewArtifactFactory

func NewArtifactFactory(format string) *ArtifactFactory

func (ArtifactFactory) NewPublicKey

func (a ArtifactFactory) NewPublicKey(r io.Reader) (PublicKey, error)

func (ArtifactFactory) NewSignature

func (a ArtifactFactory) NewSignature(r io.Reader) (Signature, error)

type PublicKey

type PublicKey interface {
	CanonicalValue() ([]byte, error)
}

PublicKey Generic object representing a public key (regardless of format & algorithm)

type Signature

type Signature interface {
	CanonicalValue() ([]byte, error)
	Verify(r io.Reader, k interface{}) error
}

Signature Generic object representing a signature (regardless of format & algorithm)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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