Documentation
¶
Index ¶
- func DetachSign(keyringPath, msg string, signer string) (string, string, error)
- func EntityListToSlice(keyring openpgp.EntityList) []*openpgp.Entity
- func FindSignerKey(keyring openpgp.EntityList, signer string) *openpgp.Entity
- func GetFirstIdentity(signer *openpgp.Entity) *openpgp.Identity
- func LoadKeyRing(keyringPath string) (openpgp.EntityList, error)
- func MatchIdentity(idt *openpgp.Identity, signer string) bool
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntityListToSlice ¶
func EntityListToSlice(keyring openpgp.EntityList) []*openpgp.Entity
func FindSignerKey ¶
func FindSignerKey(keyring openpgp.EntityList, signer string) *openpgp.Entity
func LoadKeyRing ¶
func LoadKeyRing(keyringPath string) (openpgp.EntityList, error)
Types ¶
type Signer ¶
type Signer struct {
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
Comment string `json:"comment,omitempty"`
Uid string `json:"uid,omitempty"`
Country string `json:"country,omitempty"`
Organization string `json:"organization,omitempty"`
OrganizationalUnit string `json:"organizationalUnit,omitempty"`
Locality string `json:"locality,omitempty"`
Province string `json:"province,omitempty"`
StreetAddress string `json:"streetAddress,omitempty"`
PostalCode string `json:"postalCode,omitempty"`
CommonName string `json:"commonName,omitempty"`
SerialNumber string `json:"serialNumber,omitempty"`
}
func GetSignersFromEntityList ¶
func GetSignersFromEntityList(keyring openpgp.EntityList) []*Signer
func NewSignerFromUserId ¶
func VerifySignature ¶
Click to show internal directories.
Click to hide internal directories.