Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsPackageSignatureValid ¶ added in v3.2.0
IsPackageSignatureValid checks if package is signed with given key
func IsPackageSigned ¶ added in v3.2.0
IsPackageSigned checks if package has PGP/GPG signature
func SignPackage ¶ added in v3.2.0
SignPackage signs package with given private key Notice that encrypted private key MUST BE decrypted before signing
Types ¶
type ArmoredKey ¶ added in v3.2.0
type ArmoredKey struct { IsEncrypted bool // contains filtered or unexported fields }
ArmoredKey contains raw key data
func ReadKey ¶
func ReadKey(file string) (*ArmoredKey, error)
ReadKey securely reads signing key from file
func (*ArmoredKey) Read ¶ added in v3.2.0
func (k *ArmoredKey) Read(password *secstr.String) (*Key, error)
Read reads and decrypts (if password is provided) raw OpenPGP key
You MUST NOT decrypt signing key (provide password) for checking package signature. Decrypted signing key ONLY required for signing packages/meta.
Click to show internal directories.
Click to hide internal directories.