gpgkms

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter allows exporting an openpgp entity public key

It also allow using said entity for signing

func New

func New(entity *openpgp.Entity) *Converter

func (*Converter) Export

func (c *Converter) Export(name, comment, email string, armored bool) ([]byte, error)

Export generates a pgp compatible public key

If `armored` is true, the key is generated in armor format

func (*Converter) Sign

func (c *Converter) Sign(data io.Reader, clearsigned, detached, armored bool) ([]byte, error)

Sign creates a signature for the provided data

if `clearsigned` is true, a plain text signature is generated if `detached` is true, a detacged signture is created if `armored` is true and `detached` is true, the created detached signature will be in armor format

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL