gpg

package
v0.0.0-...-8887655 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BinaryPath = "gpg"
View Source
var ExecutionTimeLimit = 30 * time.Second

Functions

This section is empty.

Types

type CLIEncryptor

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

func NewCLIEncryptor

func NewCLIEncryptor(recipient []byte, keyRing []byte) (*CLIEncryptor, error)

func (*CLIEncryptor) Close

func (encryptor *CLIEncryptor) Close()

func (*CLIEncryptor) Finish

func (encryptor *CLIEncryptor) Finish()

func (*CLIEncryptor) ReadCipherText

func (encryptor *CLIEncryptor) ReadCipherText(size int) ([]byte, error)

func (*CLIEncryptor) WritePlainText

func (encryptor *CLIEncryptor) WritePlainText(chunk []byte) error

type CLIEncryptorFactory

type CLIEncryptorFactory struct {
}

func (CLIEncryptorFactory) Get

func (CLIEncryptorFactory) Get(recipient []byte, keyRing []byte) (Encryptor, error)

type Encryptor

type Encryptor interface {
	ReadCipherText(size int) ([]byte, error)
	WritePlainText(chunk []byte) error
	Finish()
	Close()
}

type EncryptorFactory

type EncryptorFactory interface {
	Get(recipient []byte, keyRing []byte) (Encryptor, error)
}

Jump to

Keyboard shortcuts

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