pgp

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Keyring openpgp.EntityList
)

Functions

This section is empty.

Types

type Mail

type Mail struct{}

func (*Mail) Close

func (m *Mail) Close()

func (*Mail) Decrypt

func (m *Mail) Decrypt(r io.Reader, decryptKeys openpgp.PromptFunction) (*models.MessageDetails, error)

func (*Mail) Encrypt

func (m *Mail) Encrypt(buf *bytes.Buffer, rcpts []string, signer string, decryptKeys openpgp.PromptFunction, header *mail.Header) (io.WriteCloser, error)

func (*Mail) ExportKey

func (m *Mail) ExportKey(k string) (io.Reader, error)

func (*Mail) GetKeyId

func (m *Mail) GetKeyId(s string) (string, error)

func (*Mail) GetSignerKeyId

func (m *Mail) GetSignerKeyId(s string) (string, error)

func (*Mail) ImportKeys

func (m *Mail) ImportKeys(r io.Reader) error

func (*Mail) Init

func (m *Mail) Init() error

func (*Mail) KeyringExists

func (m *Mail) KeyringExists() bool

func (*Mail) Sign

func (m *Mail) Sign(buf *bytes.Buffer, signer string, decryptKeys openpgp.PromptFunction, header *mail.Header) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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