Documentation ¶
Index ¶
- func Encrypt(w io.Writer, h textproto.Header, rcpts []string, from string) (io.WriteCloser, error)
- func Sign(w io.Writer, h textproto.Header, from string) (io.WriteCloser, error)
- type EncrypterSigner
- type Mail
- func (m *Mail) Close()
- func (m *Mail) Decrypt(r io.Reader, decryptKeys openpgp.PromptFunction) (*models.MessageDetails, error)
- func (m *Mail) Encrypt(buf *bytes.Buffer, rcpts []string, signer string, ...) (io.WriteCloser, error)
- func (m *Mail) ExportKey(k string) (io.Reader, error)
- func (m *Mail) GetKeyId(s string) (string, error)
- func (m *Mail) GetSignerKeyId(s string) (string, error)
- func (m *Mail) ImportKeys(r io.Reader) error
- func (m *Mail) Init() error
- func (m *Mail) Sign(buf *bytes.Buffer, signer string, decryptKeys openpgp.PromptFunction, ...) (io.WriteCloser, error)
- type Reader
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncrypterSigner ¶
type EncrypterSigner struct {
// contains filtered or unexported fields
}
func (*EncrypterSigner) Close ¶
func (es *EncrypterSigner) Close() (err error)
type Mail ¶
type Mail struct{}
Mail satisfies the PGPProvider interface in aerc
func (*Mail) Decrypt ¶
func (m *Mail) Decrypt(r io.Reader, decryptKeys openpgp.PromptFunction) (*models.MessageDetails, error)
Click to show internal directories.
Click to hide internal directories.