Documentation
¶
Index ¶
- func Decrypt(r io.Reader) (*models.MessageDetails, error)
- func Encrypt(r io.Reader, to []string, from string) ([]byte, error)
- func ExportPublicKey(k string) (io.Reader, error)
- func GetKeyId(s string) (string, error)
- func GetPrivateKeyId(s string) (string, error)
- func Import(r io.Reader) error
- func ImportOwnertrust(r io.Reader) error
- func Sign(r io.Reader, from string) ([]byte, string, error)
- func Verify(m io.Reader, s io.Reader) (*models.MessageDetails, error)
- type StatusFdParsingError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(r io.Reader) (*models.MessageDetails, error)
Decrypt runs gpg --decrypt on the contents of r. If the packet is signed, the signature is also verified
func ExportPublicKey ¶
ExportPublicKey exports the public key identified by k in armor format
func GetPrivateKeyId ¶
GetPrivateKeyId runs gpg --list-secret-keys s
func ImportOwnertrust ¶
Import runs gpg --import-ownertrust and thus imports trusts for keys
Types ¶
type StatusFdParsingError ¶
type StatusFdParsingError int32
const ( EncryptionFailed StatusFdParsingError = iota + 1 MicalgNotFound NoValidOpenPgpData )
func (StatusFdParsingError) Error ¶
func (err StatusFdParsingError) Error() string
Click to show internal directories.
Click to hide internal directories.