Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HasSignature ¶
HasSignature checks if package has PGP/GPG signature
func IsSigned ¶
func IsSigned(file string, privateKey *PrivateKey) (bool, error)
IsSigned checks if package is signed with given key
func Sign ¶
func Sign(file, output string, privateKey *PrivateKey) error
Sign signs package with given private key Notice that encrypted private key must be decrypted before signing
Types ¶
type Key ¶
type Key struct { IsEncrypted bool // contains filtered or unexported fields }
Key contains raw key data
type PrivateKey ¶
type PrivateKey = packet.PrivateKey
PrivateKey represents a possibly encrypted private key
Click to show internal directories.
Click to hide internal directories.