openssl

package
v0.0.0-...-e675dcb Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Config *Config
}

Backend object

func NewOpenSSLBackend

func NewOpenSSLBackend(config map[string]interface{}) (ob *Backend)

NewOpenSSLBackend instantiate a new PGP Crypto Backend and configure it from config map

func (*Backend) Comments

func (ob *Backend) Comments() string

Comments implementation for OpenSSL Crypto Backend

func (*Backend) Configure

func (ob *Backend) Configure(arguments map[string]interface{}) (err error)

Configure implementation for OpenSSL Crypto Backend

func (*Backend) Encrypt

func (ob *Backend) Encrypt(in io.Reader) (out io.Reader, err error)

Encrypt implementation for OpenSSL Crypto Backend

func (*Backend) GetConfiguration

func (ob *Backend) GetConfiguration() interface{}

GetConfiguration implementation for OpenSSL Crypto Backend

type Config

type Config struct {
	Openssl    string
	Cipher     string
	Passphrase string
	Options    string
}

Config object

func NewOpenSSLBackendConfig

func NewOpenSSLBackendConfig(params map[string]interface{}) (config *Config)

NewOpenSSLBackendConfig instantiate a new Backend Configuration from config map passed as argument

Jump to

Keyboard shortcuts

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