encrypt

package
v0.0.0-...-d0a9a3c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICertHandler

type ICertHandler interface {
	GetThumbprint() (certThumbprint string, err error)
	Encrypt(bytesToEncrypt []byte) (encryptedBytes []byte, err error)
}

func New

func New(certLocation string) (ICertHandler, error)

certLocation is ignored for windows

type LinuxCertificateHandler

type LinuxCertificateHandler struct {
	CertOperations crypto.CertificateOperations
	// contains filtered or unexported fields
}

func (*LinuxCertificateHandler) Encrypt

func (ch *LinuxCertificateHandler) Encrypt(bytesToEncrypt []byte) (encryptedBytes []byte, err error)

func (*LinuxCertificateHandler) GetThumbprint

func (ch *LinuxCertificateHandler) GetThumbprint() (certThumbprint string, err error)

Jump to

Keyboard shortcuts

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