pgp

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	Public  []byte
	Private []byte
}

func NewCert

func NewCert(c Config, hash crypto.Hash, bits int, headers ...string) (*Cert, error)

func NewCertSHA512

func NewCertSHA512(c Config, headers ...string) (*Cert, error)

type Config

type Config struct {
	Name, Email, Comment string
}

type Signer

type Signer interface {
	SetKey(b []byte, passwd string) error
	SetKeyFromFile(filename string, passwd string) error
	SetHash(hash crypto.Hash, bits int)
	PublicKey() ([]byte, error)
	PublicKeyBase64() ([]byte, error)
	Sign(in io.Reader, out io.Writer) error
}

func New

func New() Signer

Jump to

Keyboard shortcuts

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