gpg

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMalformedFingerprint = errors.New("malformed GPG key fingerprint")

Functions

This section is empty.

Types

type Fingerprint

type Fingerprint [20]byte

func ParseFingerprintBytes

func ParseFingerprintBytes(b []byte) (p Fingerprint, err error)

func ParseFingerprintHex

func ParseFingerprintHex(s string) (p Fingerprint, err error)

type Fingerprints

type Fingerprints []Fingerprint

func ParseFingerprintsBytes

func ParseFingerprintsBytes(bs ...[]byte) (Fingerprints, error)

func ParseFingerprintsHex

func ParseFingerprintsHex(ss ...string) (Fingerprints, error)

func (Fingerprints) Bytes

func (fs Fingerprints) Bytes() [][]byte

func (Fingerprints) Equal

func (as Fingerprints) Equal(bs Fingerprints) bool

func (Fingerprints) Has

func (as Fingerprints) Has(b Fingerprint) bool

func (Fingerprints) HasDuplicate

func (fs Fingerprints) HasDuplicate() bool

func (Fingerprints) Sort

func (fs Fingerprints) Sort()

Jump to

Keyboard shortcuts

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